<SCRIPT LANGUAGE="JavaScript">
<!--
var _mm=[]; //global array
_mm.objIndex=0;var aa=function()
{
this.id=0; this.name = "mz"+_mm.objIndex++
_mm[this.name]=this;
}
aa.prototype.Start=function()
{
this.exe();
}
aa.prototype.exe=function()
{
this.id=this.id+1;
alert(this.id);
if(this.id<15)
{
setTimeout("_mm['"+ this.name +"'].exe()",1);
}
}
var myTree = new aa();
myTree.Start();
//-->
</SCRIPT>
<!--
var _mm=[]; //global array
_mm.objIndex=0;var aa=function()
{
this.id=0; this.name = "mz"+_mm.objIndex++
_mm[this.name]=this;
}
aa.prototype.Start=function()
{
this.exe();
}
aa.prototype.exe=function()
{
this.id=this.id+1;
alert(this.id);
if(this.id<15)
{
setTimeout("_mm['"+ this.name +"'].exe()",1);
}
}
var myTree = new aa();
myTree.Start();
//-->
</SCRIPT>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货