var request = new XMLHttpRequest();request.open("GET","get.php",ture);request.send();request.onreadystatechange = function(){if(request.readyState ===4&& request.status===200)//执行一些事情request.responseText}