map有3个参数:当前元素,当前元素下标,当前map的数组
var arr1 = [1,3,5,6,8,19];
arr1.map( (curruntArg, index, curruntArr) => console.log(curruntArg,index,curruntArr))
map有3个参数:当前元素,当前元素下标,当前map的数组
var arr1 = [1,3,5,6,8,19];
arr1.map( (curruntArg, index, curruntArr) => console.log(curruntArg,index,curruntArr))
本文标题:11.map数据结构
本文链接:https://www.haomeiwen.com/subject/mfapuctx.html
网友评论