let a={
local: false,
scaleControl: false
}
let b={
'aa': true,
'bb':'nice',
local: true,
}
let c ={
...a,...b
}
console.log(c)
let d=[11,22,33]
let e=[33,44,55,[66,77]]
let f=[...d,...e]
console.log(f,'fff')
…合并对象数据,如果有重复元素,以后一个数据为准
对于数组来说==>单纯的数据拼接