eg.
var arr = []; arr.push(1); arr.push([2, 3]); arr.push(4, 5); arr = arr.concat(6); arr = arr.concat([7, 8]); arr = arr.concat(9, 10); for(var i=0; i<arr.length; i++){ console.log(arr[i]); }
push() & concat(),布布扣,bubuko.com
原文:http://www.cnblogs.com/xiaowangzi2013/p/3860122.html