摘要: 操作数组 印象中数组有很多方法,系统的整理一下,放在自己家里方便回头查~ Array.map() 1 2 3 4 let arr = [1, 2, 3, 4, 5] let newArr = arr.map(x => x*2) //arr= [1, 2, 3, 4, 5] 原数组保持不变 //new 阅读全文