日期:2014-05-16 浏览次数:20872 次
xhr:function() { return window.activexobject ? new activexobject("microsoft.xmlhttp") : new xmlhttprequest(); }
var orequest; if(typeof xmlhttprequest=="undefined" && window.activexobject) { var arrsignatures = ["msxml2.xmlhttp.5.0","msxml2.xmlhttp.4.0","msxml2.xmlhttp.3.0","msxml2.xmlhttp","microsoft.xmlhttp"]; for(var i=0;i<arrsignatures.length;i++) { try { orequest = new activexobject(arrsignatures[i]); return orequest; } catch(oerror) { } } } else orequest=new xmlhttprequest(); return orequest