let obj = {name: "yibo", age: 25} let newObj = Object.assign({}, obj,{name: "erer"}) console.log(newObj) 运行结果: