js,for循环怎么写?

2025-05-19 16:20:44
推荐回答(1个)
回答(1):

const arr = [1,2,3,4,5]
for (let i in arr) {
console.log(arr[i]);
}