1. array遍历: [1].forEach() forEach是ES5中操作数组的一种方法,主要功能是遍历数组.forEach方法中的function回调有三个参数:第一个参数是遍历的数组内容,第二个参数是对应的数组索引,第三个参数是数组本身[].forEach(function(value,index,array){ //code something}); [2].$.each() 等价于jquery中$.each():$.each([],function(index,value,arra