一、循环遍历,map的用法 例:var a = [1,2,3] var b = a.map(function(i) {return i *2}) a = (3) [1, 2, 3] b = (3) [2, 4, 6]