XMLHttpRequest 在老版本浏览器(IE5/6)中有兼容问题,可以通过另外一种方式代替
var xhr=window.XMLHttpRequest?new XMLHttpRequest:ActiveXObject(‘Microsoft.XMLHTTP‘);
XMLHttpRequest 的兼容
原文:https://www.cnblogs.com/ashen1999/p/12559636.html