摘要: 1.forEach 遍历数组 var arr = [1,2,3]; arr.forEach(function(item){ console.log(item + ' '); })// 1 2 3 2.every 判断数组中值是否都满足条件 相当于&&的关系 (返回值为Boolean模式) var a 阅读全文
posted @ 2020-07-14 10:02 CodeProducter 阅读(157) 评论(0) 推荐(0) 编辑