ES5 04 Array扩展
- Array.prototype.indexOf(value) : 获得值在数组中的第一个下标
- Array.prototype.lastIndexOf(value) : 获得值在数组中的最后一个下标
- Array.prototype.forEach(function(item, index){}) : 遍历数组
- Array.prototype.map(function(item, index){}) : 遍历数组返回一个新的数组,返回加工以后的值
- Array.prototype.filter(function(item, index){}) : 遍历过滤出一个新的子数组, 返回条件为true的值

欢迎关注本站公众号,获取更多信息