Ajax在火狐浏览器的问题
// JavaScript Document
function createXMLHttpRequest()
{
var xmlhttp=false;
if (window.XMLHttpRequest) {
xmlhttp = new XMLHttpRequest();
}
if (!xmlhttp&&window.ActiveXObject)
{
try
{
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP.5.0")
} catch(e) {
try
{
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP.4.0")
} catch(e) {
try
{
new ActiveXObject("Msxml2.XMLHTTP")
} catch(e) {
try{new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}
}
}
}
}
if(!xmlhttp){
alert("Error");
}
return xmlhttp;
}
新手刚学习ajax,感觉也没错啊,在IE浏览器下没问题,但在火狐浏览器下,不能获得数据!火狐还下了最新的版本,还是不行,都快哭了,大神救我