ES5中Array新增加的API接口 forEach map filter some every indexOf lastIndexOf reduce reduceRight
vararray=[23,48,66,2];forEach:循环、遍历数组;没有返回值。与for循环类似array.forEach(function(value,index,array){console.log(value);});map:映射的意思,映射返回一个新数组,有返回值;filterArr:返回一个新对象varmapArr=array.map(function(value,index,a