遍历数组
2018-05-14 本文已影响13人
i_木木木木木
forEach()
例:
var arr = ["张三","李四","王五"];
arr.forEach(function(index,value){
console.log(index+":"+value);
});
forEach()
例:
var arr = ["张三","李四","王五"];
arr.forEach(function(index,value){
console.log(index+":"+value);
});