Answers
自己写了一个答案:
Array.prototype.opush = function(){
//alert(this.concat(Array.prototype.slice.apply(arguments)));
this.splice.apply(
this,
[this.length,0].
concat(Array.prototype.slice.apply(arguments)));
return this.length;
};
var a = [1,2,3,4,5];
var b = [23,45,67];
alert(a.opush(b));
alert(a);
还有什么好的方法?
BAHLM
answered 12 years, 8 months ago