function createXMLHttp(){
if(typeof XMLHttpRequest!="undefined"){
return new XMLHttpRequest();
}else if(window.ActiveXObject){
var aVersions=["MSXML2.XMLHttp.5.0","MSXML2.XMLHttp.4.0","MSXML2.XMLHttp.3.0","MSXML2.XMLHttp","Microsoft.XMLHttp"];
for(var i=0;i<aVersions.length;i++){
try{
var oXmlHttp=new ActiveXObject(aVersions[i]);
return oXmlHttp;
}catch(oError){
}
}
}
}
posted on 2006-10-08 09:56
周锐 阅读(587)
评论(0) 编辑 收藏 所属分类:
Ajax