const xhr =new XMLHttpRequest()
xhr.open('get','http://localhost:3000/get')
xhr.send(null)
xhr.onreadystatechange=function(){
if(xhr.readyState === 4){
if(xhr.status === 200){
console.log(xhr.responseText);
}else{
console.log(xhr.responseText)
}
}
}
因篇幅问题不能全部显示,请点此查看更多更全内容