ajax浏览器兼容
2016-06-17来源:

ajax浏览器兼容函数,ajax 兼容,浏览器兼容,ajax刘拉起兼容性

function createxmlhttprequest() {

if(window.xmlhttprequest) {

xmlhttpreq = new xmlhttprequest();

}

else if (window.activexobject) {

try {

xmlhttpreq = new activexobject( msxml2.xmlhttp );

} catch (e) {

try {

xmlhttpreq = new activexobject( microsoft.xmlhttp );

} catch (e) {

alert( create object fail );

}

}

}

}

推荐信息
Baidu
map