<script language="JavaScript">
<!--
function test(){
this.count=function(){
if(!this.timeoutid){
this.timeoutid=setTimeout("t.count()", 1000);}
else
{alert(this.timeoutid);this.kill();}
}
this.kill=function(){clearTimeout(this.timeoutid)}
}
var t= new test()
t.count()
//-->
</script>
<!--
function test(){
this.count=function(){
if(!this.timeoutid){
this.timeoutid=setTimeout("t.count()", 1000);}
else
{alert(this.timeoutid);this.kill();}
}
this.kill=function(){clearTimeout(this.timeoutid)}
}
var t= new test()
t.count()
//-->
</script>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货