标签:
forEach
forEach
:遍历,循环数组
var arr=[1,2,3,4]; arr.forEach(alert); /*等同于for循环*/ for(var i=0;i<arr.length;i++){ alter(arr[i]); }
map
filter
some
every
indexOf
lastIndexOf
reduce
reduceRight
标签:
原文地址:http://www.cnblogs.com/lifeisok/p/5503378.html