Here's the code snippet
这是代码片段
xhr.onreadystatechange = function(){
if(xhr.readyState == 3){
console.log("readyState response length " + xhr.response.length);
}
}
xhr.onreadyHere's the code snippet
这是代码片段
xhr.onreadystatechange = function(){
if(xhr.readyState == 3){
console.log("readyState response length " + xhr.response.length);
}
}
xhr.onready