var request = new XMLHttpRequest();
兼容IE6方法
var request;
if(window.XMLHttpRequest){
request = new XMLHttpRequest();//IE7+ 及其他现代浏览器
}else{
request = new ActiveXObject("Microsoft.XMLHTTP"); //ie6,ie5
}
var request = new XMLHttpRequest();
兼容IE6方法
var request;
if(window.XMLHttpRequest){
request = new XMLHttpRequest();//IE7+ 及其他现代浏览器
}else{
request = new ActiveXObject("Microsoft.XMLHTTP"); //ie6,ie5
}