Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法检测 XmlHttpRequest 无法解析 URL ?使用错误的 url 调用 Open(...) 时似乎不会抛出异常。
HTTP 状态代码为零。 这适用于无法建立连接且未使用代理的网络问题。
您可能会收到一个 404 not found 标头返回。