标签:concat 数组 bsp class var app div pre code
两个数组种的号码合并:
//第一种.concat var a1 = [4,5,6], a2=[7,8,9]; a1 = a1.concat(a2); console.log(a1);//4,5,6,7,8,9 //第二种 var b1 = [1,2]; var b2 = [3,4]; Array.prototype.push.apply(b1, b2); console.log(b1);//1,2,3,4
标签:concat 数组 bsp class var app div pre code
原文地址:http://www.cnblogs.com/wang715100018066/p/6145513.html