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 );
}
}
}
}