![如何创建XMLHttpRequest对象 如何创建XMLHttpRequest对象](https://i-blog.csdnimg.cn/blog_migrate/a4c26d1e5885305701be709a3d33442f.gif)
var xmlhttp = createXMLHttpRequest();
function createXMLHttpRequest() {
var xmlHttpReq = null;
if (window.XMLHttpRequest) {
}
else { // Internet Explorer 6 、8
}
return xmlHttpReq;
}