兼容不同浏览器的 Adapter 适配层
// 兼容不同浏览器的 Adapter 适配层if(typeof window.XMLHttpRequest === "undefined"){window.XMLHttpRequest = function(){return new window.ActiveXObject(navigator.userAgent.indexOf("MSIE 5") >=0 ? "Microsoft.XMLHTTP" : "Msxml2.XMLHTTP");};}
页:
[1]