js中的循环.js let arr = ['a','s','d','f','g'] for(let i in arr){ console.log(arr[i]) } arr.forEach(function(val,key,newArr){ console.log(val,key,newArr) })
let arr = ['a','s','d','f','g'] for(let i in arr){ console.log(arr[i]) } arr.forEach(function(val,key,newArr){ console.log(val,key,newArr) })