const arr=[1,2,3,4]
const b=[5,6,7,8]
const c=arr.concat(b) //没有改变arr [1,2,3,4,5,6,7,8]
const d=Array.prototype.push.apply(arr,b) //改变了arr [[1,2,3,4,5,6,7,8] ]
const arr=[1,2,3,4]
const b=[5,6,7,8]
const c=arr.concat(b) //没有改变arr [1,2,3,4,5,6,7,8]
const d=Array.prototype.push.apply(arr,b) //改变了arr [[1,2,3,4,5,6,7,8] ]