使用js编写的ajax const xhr = new XMLHTTPRequest() xhr.open(' 请求方式',"请求地址") xhr.send(' ') onreadystatechange=function(){ if(xhr.status==200&&xhr.readyState==4){ console.log(xhr.responseXML) console.log(xhr.responseText)</