我想迭代下面的數組:var a=[1,2,3,4,5,6,0,11]for(let value of a){ console.log(a[value-1])}我得到如下輸出。我無法找到為什么 0 和 11 被打印為未定義。123456undefinedundefined
使用“for of loop”迭代數字數組
慕森王
2021-09-17 10:14:36