簡單來說就是將來源的object 分派給指定的物件。 let obj1 = {a: 1} let obj2 = Object.assign({}, obj1) obj1.a = 2 console.
確定! 回上一頁