logo 西林@生存 - 骑猪闯天下!
Firefox3,它又在那打飞机!
2008-7-4 11:38:00 By:xling
各位看官,您说在FF3下,下面的代码会 alert 几次?
<script>
    var xmlHttp = new XMLHttpRequest();
    xmlHttp.onreadystatechange = function(){
        alert(xmlHttp.status);
    }
    xmlHttp.open("GET","http://usnower/test.php", false );
    xmlHttp.send(null);
    alert("outer" + xmlHttp.status);
</script>

告诉你: Just one ! 您在看现下面的代码:

<script>
    var xmlHttp = new XMLHttpRequest();
    xmlHttp.onreadystatechange = function(){
        alert(xmlHttp.status);
    }
    xmlHttp.open("GET","http://usnower/test.php", true );
    xmlHttp.send(null);
    alert("outer" + xmlHttp.status);
</script>

 这个可不止 alert 一次!

也就是说:在FF3下,它打了一个大的飞机!当 async = false 的时候,onreadystatechange 里写的代码,不被执行!

真TM的够浪的!

真TMD是 **中的战斗机啊!

各位可以验证一下。

转我的贴,写你的名,是一种可耻的行为!请不要让我BS你!
阅读全文 | 回复(0) | 引用通告 | 编辑

发表评论:

    密码:
    主页:
    标题:
    页面数据正在载入...
<<  < 2008 - >  >>
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Placard
请职:PHP或JS都行,如果学历要求本科的,请直接忽略。谢谢。 有意者请联系:1fairy1#163.com
Logon System
Search
Info about this blog
Others
myDream
JGrid

数据表格
JTree

树状控件
JMenuTab

标签控件(滑动门)
JTrackBar / JScroll

滑动条/模拟滚动条
JAccordion

(QQ菜单)
关于:
xling,也叫xlingFairy 艾克司令 西林.
Email:1fairy1#163.com
喜欢javascript,喜欢java(汗...还在学习中...水平菜的要死...)
bxna 京ICP备05002321号