87,910
社区成员
发帖
与我相关
我的任务
分享
function $(){
}
$.prototype.splice=[].splice;
//$.prototype.push = [].push;
var $a = new $();
$a.length = 3;
$a["1"]="aa";
$a["3"]= "cc";
var $b=4;
function $(){
}
$.prototype.splice=[].splice;
//$.prototype.push = [].push;
$.prototype.push1 = function(a){
if(this.length==undefined){
this.length = 0;
}
this[this.length++]=a;
}
var $a = new $();
$a.push1("dd");
$a.push1("cc");
var $b=4;