有沒有辦法使用 for-of 循環來分配給可迭代的元素?像這樣的東西,它實際上會改變數組中元素的值。for (let e of some_array) {
e = new_value;
}
使用 for-of 給數組的元素賦值
青春有我
2023-09-07 16:33:00