摘要: forEach forEach是数组遍历的一种方法。 forEach的写法: 运行结果见图1 var arr=[1,2,3,5,6,7,8,9];arr.forEach(function(item,index,arr){ console.log(item,index,arr); }) 图1 函数括号 阅读全文
posted @ 2020-03-29 19:14 02千寻 阅读(704) 评论(0) 推荐(0)