摘要:
一、forEach(),用于遍历数组,无返回值 var arr = [1,-2,3,4,-5]; 我要做事情的就是,将数组中的每一项翻倍 arr.forEach(function(item,index,array){ array[index] = item * 2; }); console.log( 阅读全文
posted @ 2020-10-21 09:34
耳机里听雨
阅读(151)
评论(0)
推荐(0)
Nine