forEach()例: var arr = ["张三","李四","王五"]; arr.forEach(function(index,value){ console.log(index+":"+value);});