var request = new XMLHttpRequest();
request.open("GET","get.php",ture);
request.send();
request.onreadystatechange = function(){
if(request.readyState ===4&& request.status===200)
//执行一些事情request.responseText
}
request.open("GET","get.php",ture);
request.send();
request.onreadystatechange = function(){
if(request.readyState ===4&& request.status===200)
//执行一些事情request.responseText
}
2016-05-31
var request;
if(windos.XMLHttprequest){
request = new XMLHttprequest();
} else{
request = new AativeXObject("microsoft.XMLHTTP");
}
if(windos.XMLHttprequest){
request = new XMLHttprequest();
} else{
request = new AativeXObject("microsoft.XMLHTTP");
}
2016-05-31