XMLHttpRequest 的兼容 XMLHttpRequest 在老版本浏览器(IE5/6)中有兼容问题,可以通过另外一种方式代替 var xhr=window.XMLHttpRequest?new XMLHttpRequest:ActiveXObject('Microsoft.XMLHTTP');