摘要: 数组.foreach(函数) 这个函数里面默认的参数就是数组里面的每一个元素 注意:这里面函数不需要返回参数 var arr1 = [1,2,3,4,5,6,7] arr1.foreach(function(item){ console.log(item) }) 得到 1 2 3 4 5 6 7 新 阅读全文
posted @ 2024-12-28 19:35 Coder-Wang 阅读(8) 评论(0) 推荐(0)