var arr
= [{id
:1,name
:'xiaohua'},{id
:2,name
:'xiaohong'},]
var newArr
= arr
.map(v
=>{
return {...v
,checked
:true}
})
console
.log(arr
);
arr1
= [1,2];
arr2
= [3,4,5];
arr1
.push(...arr2
)
转载请注明原文地址:https://tech.qufami.com/read-7180.html