原生js的ajax请求详细步骤
var xhr = new XMLHttpRequest();
xhr.open("GET",url,true);
xhr.setRequestHeader("content-type","application/x-www-form-urlencoded);
xhr.send(null);
xhr.onreadystatechange = function(){
if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304))
}