var request;
if(window.XMLHttpRequest){
request=new XMLHttpRequest();//IE7+,Firefox,Chrome,Ooera,Safari...
}else{
request=new ActiveXObject("Microsoft.XMLHTTP");//IE6,IE7
}
原来那个对象的名字叫 XMLHttpRequset
if(window.XMLHttpRequest){
request=new XMLHttpRequest();//IE7+,Firefox,Chrome,Ooera,Safari...
}else{
request=new ActiveXObject("Microsoft.XMLHTTP");//IE6,IE7
}
原来那个对象的名字叫 XMLHttpRequset
2015-08-27