$.ajaxSetup({ xhr: function () { if ("ActiveXObject" in window) { return new ActiveXObject("Microsoft.XMLHTTP"); } else { return new XMLHttpRequest(); } } });
$.ajaxSetup({ xhr: function () { if ("ActiveXObject" in window) { return new ActiveXObject("Microsoft.XMLHTTP"); } else { return new XMLHttpRequest(); } } });
转载于:https://www.cnblogs.com/aeolia/p/7653044.html