forEach()
例:
var arr = ["张三","李四","王五"];
arr.forEach(function(index,value){
console.log(index+":"+value);
});
本文标题:遍历数组
本文链接:https://www.haomeiwen.com/subject/kgpddftx.html
网友评论