摘要: map 有返回值,返回一个新的数组,每个元素为调用func的结果 let list=[1,2,3,4,5]; let other=list.map((item,index)=>{ return item*2; }) console.log(other); //print:[2,4,6,8,10] f 阅读全文
posted @ 2019-07-01 14:22 超哥20 阅读(214) 评论(0) 推荐(0) 编辑