在FF中,当Firebug被Disable后在使用XmlHttpRequest的时候,不能运行到send步骤。例如:
var
client;
if
(window.XMLHttpRequest)
{
client = new XMLHttpRequest();
}
else
if
(window.ActiveXObject)
{
client = new ActiveXObject('Microsoft.XMLHTTP');
}
client.open(
'
HEAD
'
,
'
http://
'
+
location.host
+
'
{0}
'
,
true
);
client.send();
这个问题 很早就被发现。但是建议的各种方法都不行。
另外,client.open有权限上的问题。有些莫名其妙的情况在使用了 location.host代替原来的路径好像可以解决。









这个问题 很早就被发现。但是建议的各种方法都不行。
另外,client.open有权限上的问题。有些莫名其妙的情况在使用了 location.host代替原来的路径好像可以解决。