拓展运算符(...)用于取出参数对象所有可遍历属性然后拷贝到当前对象。
let age = {age: 15}; let name = {name: "Amy"}; let person = {...age, ...name}; person; //{age: 15, name: "Amy"}
0