1、List数组合并
let a = [1,2,3]
let b = [4,5,6]
let c = […a,…b]
最后console输出数组c,c= [1,2,3,4,5,6]
对象数组合并也是如此
let a = [{
name:'a',
age:'20'
}];
let b = [{
name:'b1'
1、List数组合并
let a = [1,2,3]
let b = [4,5,6]
let c = […a,…b]
最后console输出数组c,c= [1,2,3,4,5,6]
对象数组合并也是如此
let a = [{
name:'a',
age:'20'
}];
let b = [{
name:'b1'