Array常用的方法

Array.prototype.indexOf(value) : 获得值在数组中的第一个下标 Array.prototype.lastIndexOf(value) : 获得值在数组中的最后一个下标 Array.prototype.forEach(function(item, index){}) : 遍历数组 Array.prototype.map(function(item, index){})
相关文章
相关标签/搜索