var arr= [4,5,6];
var arr1 = [7,8,9];
var arr2=[1,2,3];
arr.concat(arr1,arr2);
//或者使用Arry.prototype.push.aplly(mergeTo,mergeFrom);
arr; [4,5,6,7,8,9,1,2,3];
2022-09-30 19:52:25
var arr= [4,5,6];
var arr1 = [7,8,9];
var arr2=[1,2,3];
arr.concat(arr1,arr2);
//或者使用Arry.prototype.push.aplly(mergeTo,mergeFrom);
arr; [4,5,6,7,8,9,1,2,3];
下一篇:BFC?来自CSS中的BFC