如下代码读取服务器响应头部,请求status code是200,但是代码xmlHttp.status却是0,请问是什么个情况? let xmlHttp = new XMLHttpRequest(); xmlHttp.onreadystatechange = () => { if (xmlHttp.readyState === 4) { console.log(xmlHttp.status) resolve(xmlHttp.status === 200 ? ajaxUrl : url);