摘要:
ES5 对数组的扩展 forEach 与 map 语法: 1. forEach 就是在模拟 jq 中 each 例:var arr = [ 11, 22, 33 ]; var res = arr.forEach(function ( v, i ) { // 遍历数据 console.log( i + 阅读全文
posted @ 2016-08-09 23:39 沙源隐泉 阅读(203) 评论(0) 推荐(0) 编辑
posted @ 2016-08-09 23:39 沙源隐泉 阅读(203) 评论(0) 推荐(0) 编辑