js中数组和对象循环遍历数组:var arr = [‘a’,‘b’,'c'] for (let i = 0i<arr.lengthi++){ console.log(i,arr[i]) }对象:v2023-02-27JavaScript180