它將返回目標對象。 const target = {a: 1, b: 2} const source = {b: 4, c: 5} const returnedTarget = Object.assign(target, source) // output: ...
確定! 回上一頁