合并并替换对象 Object.assign(a,b) Object.assign(a,b) let obj = {a:"123",b:"234"} let obj1 = {b:"aaa"} let obj3 = Object.assign(obj,obj1) console.log(obj3) //打印结果:{a:"123",b:"aaa"}