javascript知识巩固------ES5中新增的数组方法

数组方法 迭代(遍历)方法:forEach()、map()、filter()、some()、every();javascript array.forEach(function(value,index,arr){}) 回调函数的三个参数分别表明-----value:数组当前项的值;index:数组当前项的索引;arr:数组对象自己。 array.filter(function(value,index
相关文章
相关标签/搜索