摘要: forEach() 方法用于调用数组的每个元素,并将元素传递给回调函数。 注意: forEach() 对于空数组是不会执行回调函数的。 var arr= ['小明','小红','小亮'] arr.forEach(function(element,index,array){ console.log(e 阅读全文
posted @ 2020-10-12 10:21 路西德 阅读(1010) 评论(0) 推荐(0)