參考: 從ES6開始的JavaScript學習生活陣列迭代 ... forEach( function ( item, index, array) { item.price = item.cost + 100; // 直接對陣列內元素做操作,加入 ...
確定! 回上一頁