第一种遍历数组的循环使用for循环for(let i0;iarrary.length;i) { console.log(arrary[i]) }第二种遍历数组的循环使用for-in这里遍历的是数组下标for(let index in arrary) { console.log(arrary[index]) }第三种遍历方式是for-offor(let j of arrary) { console.log(j) }