摘要:
function getXmlHttpRequest() {
if(window.XMLHttpRequest){
return new XMLHttpRequest();
} else if(window.ActiveXObject){
var ieArr=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.3.0", "Msxml2.XMLHTTP","Microsoft.XMLHTTP"];
for(var i=0;i {
var xmlhttp= new ActiveXObject(ieArr[i]);
}
return xmlhttp;
} 阅读全文