js数组map方法

map是遍历数组中的每个值 console.log(["1", "2", "3"].map(fn)); function fn(i){ return i*10+i; } //[ '101', '202', '303' ]
相关文章
相关标签/搜索