var request = new XMLHttpRequest();
request.open("GET","get.php",ture);request.send();request.onreadystatechange = function(){ if(request.readyState ===4&& request.status===200)//执行一些事情request.responseText}本文共 267 字,大约阅读时间需要 1 分钟。
var request = new XMLHttpRequest();
request.open("GET","get.php",ture);request.send();request.onreadystatechange = function(){ if(request.readyState ===4&& request.status===200)//执行一些事情request.responseText}转载于:https://www.cnblogs.com/family-626-77/p/5560949.html