摘要: Object.assign() const target = { a: 1, b: 2 }; const source = { b: 4, c: 5 }; const returnedTarget = Object.assign(target, source); console.log(target 阅读全文
posted @ 2020-11-23 11:08 xdsax 阅读(109) 评论(0) 推荐(0) 编辑