摘要: 数组的遍历 1.传统for循环 2.forEach方法,不支持break和continue const arr = [1, 2, 3, 4, 5] arr.forEach(function (item) { console.log(item) }) 3.every方法,可以做到 break 那样的效 阅读全文
posted @ 2020-02-04 13:15 islandowner 阅读(319) 评论(0) 推荐(0)