javascript Copy const obj={ a: 1, b: { c: 2 } } const clone = Object.assign({},obj); // creates a shallow copy obj.b.c =5; ...
確定! 回上一頁