摘要: 1 indexof(要查找的元素,开始查找的位置) 2 forEach:遍历数组,数组.forEach(function(item,index,array){ item:当前遍历的元素 index:当前遍历到的索引 array:当前的数组 }) 3 map方法:操作数组中的每一个元素并返回新的数组 阅读全文
posted @ 2020-03-12 21:02 白羽轻飘 阅读(196) 评论(0) 推荐(0) 编辑