js數組map方法

map是遍歷數組中的每個值 console.log(["1", "2", "3"].map(fn)); function fn(i){ return i*10+i; } //[ '101', '202', '303' ]
相關文章
相關標籤/搜索