摘要: 一 数组遍历 方法一:for循环 方法二:forEach遍历 forEach遍历数组 性能低于for循环,且不可使用break中断循环,也不能使用return返回外层函数 arr.forEach(function(item,index){ console.log("forEach遍历",index, 阅读全文
posted @ 2019-05-23 10:09 liuxu_xrl 阅读(520) 评论(0) 推荐(0) 编辑