摘要: 看了ES6就感觉各种数据结构的遍历方法好多好混乱,就写下来总结下,看看应用场景上有什么区别 Array: ES5: (1)Array.prototype.forEach(function(item,index,array){...}) (2)Array.prototype.map(function( 阅读全文
posted @ 2016-06-28 21:09 鳗鱼饭团 阅读(3451) 评论(0) 推荐(2) 编辑