摘要: Array.forEach() 该方法用于遍历数组 let arr = [1, 3, 5, 7, 2, 4, 6] arr.forEach((item, index, array) => { console.log(item, index, array) }) // 1 0 [1, 3, 5, 7, 阅读全文
posted @ 2022-06-11 15:03 时光凉忆 阅读(273) 评论(0) 推荐(0) 编辑