帮我看下这段JAVASCRIPT为什么会益出。。我迷茫死了。。 很明显,你的 two()产生了循环调用 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 window.setTimeout(function(){var xs = new testx();},0);或:window.onload = function(){new testx()} 确实是死循环了,这样就可以了,但在firefox下还是不行在ie下还可以在firefox下不认document.body.complete<html><head><title>测试</title></head><body><script>var testx = function(){ this.two();}testx.prototype.two = function (){ if (document.body.readyState== "complete"){ this.three(); }else { setTimeout(this.two(),100); }}testx.prototype.three = function (){ alert(3);}var xs = new testx();</script></body></html> 关于apply()的一个疑问。 关于数组和数据库的问题。 函数返回值的一点小问题? Jsp和JavaScript,的区别 frameset中怎么设置按钮的click事件去到另外一个页面(这个页面不能是在其中一个frame中)?? 你知道结婚有多难吗?再贺MEIZZ 请问 histoy.back问题 有没有办法实现单击一个连结产生一个声音效果,比如,一个很短促的“叮”的一声。 显示欢迎界面 insertAdjacentElement 在FF中有没有好一点的解决办法(简洁一点的) 新手幼稚问题2:关于charset
或:
window.onload = function(){new testx()}
firefox下不认document.body.complete
<html>
<head>
<title>测试</title>
</head>
<body>
<script>
var testx = function(){
this.two();
}
testx.prototype.two = function (){
if (document.body.readyState== "complete"){
this.three();
}else {
setTimeout(this.two(),100);
}
}
testx.prototype.three = function (){
alert(3);
}
var xs = new testx();
</script>
</body>
</html>