发布网友 发布时间:2022-04-26 17:44
共1个回答
热心网友 时间:2022-04-26 19:13
var str1=[{name:"11",age:11}];var str2=[{name:"22",age:22}]; var str3 = []; for (var i = 0; i < str1.length; i++) { str3.push(str1[i]);} for (var i = 0; i < str2.length; i++) { str3.push(str2[i]);} -------------- var str3 = str1.concat(str2);