XMLHttpRequest对象比较特殊,不同的浏览器都有其不同的建法 var xmlhttp;if(window.XMLHttpRequest){ xmlhttp=new XMLHttpRequest();现在普遍的浏览器建发}else{ xmlhttp=new ActiveXObjies("Microssoft.XMLHTTP");//IE7一下
var xmlhttp;
if(window.XMLHttpRequest){
xmlhttp=new XMLHttpRequest();现在普遍的浏览器建发
}
else{
xmlhttp=new ActiveXObjies("Microssoft.XMLHTTP");//IE7一下的
}
