上周在总结赋值和深浅拷贝的时候提到了Object.assign这种浅拷贝方式。 ... title: "You Don't Know JS", price: "45" } } let c = Object.assign(a, ...
確定! 回上一頁