1-1 Object.assign 1-1 Object.assign 作用:给对象添加新的属性; var obj = {name:"cheng"};Object.assign(obj,{age:18});console.log(obj);