三点运算符 将需要拼接的对象通过 三点运算符拆分到新对象中 let newObj = {...obj, a: 'a', b: 'b'} Object.assign() 参数为若干待拼接的对象 assign:分配 let newObj = Object.assign(obj1, obj2, ···) 数组 数组可使用 arr.concat() concat:连接 let newarr = arr1.concat(arr2, ···) // 无参数时,为复制arr1 Map Set