//var xmlHttpReq = new ActiveXObject("MSXML2.XMLHTTP.3.0");
//定义变量,存储对象 var xmlHttp; // 创建XMLHttpRequest对象 if (window.ActiveXObject) { xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP"); } else if (window.XMLHttpRequest) { xmlHttpReq = new XMLHttpRequest(); }