var request ;
if(window.xmlhttpservlet){
request=new xmlhttpservlet()
}else{
request=new actionobject();
}
request.open("get",get.phn.truen);
request.send()
if(window.xmlhttpservlet){
request=new xmlhttpservlet()
}else{
request=new actionobject();
}
request.open("get",get.phn.truen);
request.send()
2017-03-25
先创建XMLHttpRequest对象
var request;
if(window.XMLHttpRequest){
request =new XMLHttpRequest();
}else{
request=new ActiveXObject("Microsoft.XMLHttp");
}
再调用open方法;
request.open("GET","get.php",true);
request.send();
var request;
if(window.XMLHttpRequest){
request =new XMLHttpRequest();
}else{
request=new ActiveXObject("Microsoft.XMLHttp");
}
再调用open方法;
request.open("GET","get.php",true);
request.send();
2017-03-23
var request;
if(window.XMLHttpRequest){
request=new XMLHttpRequest(); //IE7+,Firefox,Chrome,Opera,Safari
}else{
request=new ActiveXObject("Microsoft.XMLHTTP");//IE6,IE5
}
if(window.XMLHttpRequest){
request=new XMLHttpRequest(); //IE7+,Firefox,Chrome,Opera,Safari
}else{
request=new ActiveXObject("Microsoft.XMLHTTP");//IE6,IE5
}
2017-03-23