forEach ( function ( item, index, array) { item.price = item.cost + 100; // 直接對陣列內元素做操作,加入新property console.log( item ) });.
確定! 回上一頁