方法一:

var a1 = [\'aa\',12,13];
var a2 = [21,22,23];
var newA = a1.concat(a2)

 

方法二:

    var a1 = [\'aa\',12,13];
    var a2 = [21,22,23];
    var newA = a1.join()+\',\'+a2.join();

  

方法三:

        var a1 = [\'aa\',12,13];
	var a2 = [21,22,23];
	for(var i = 0; i < a2.length;i++){
		a1.push(a2[i])
	}    

  

版权声明:本文为zshno1原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/zshno1/p/8489013.html