Javascript HTTP 脚本请求“中止”状态
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2766879/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
HTTP script request "Aborted" status
提问by vsync
What might cause a normal external script on my app to show up sometimes in Firebug's NET panel as 'Aborted' and not being loaded?
什么可能导致我的应用程序上的正常外部脚本有时在 Firebug 的 NET 面板中显示为“中止”并且未加载?
Is this a server issue, or is the browser going nuts?
这是服务器问题,还是浏览器发疯了?
采纳答案by Sky Sanders
It is a bug in FireBug causing it to echo noise events. Abort is a normal condition for the end of an HttpRequest.
这是 FireBug 中的一个错误,导致它回响噪声事件。Abort 是 HttpRequest 结束的正常情况。
I think that it is going to be fixed in the next release.
我认为它将在下一个版本中修复。
回答by Binod Kalathil
This happens sometimes, for eg:
有时会发生这种情况,例如:
On a click event on a hyper-link we try to redirect to another URL through JavaScript/jQuery but the default behavior of a hyper-link click is not blocked using preventDefault
在超链接上的点击事件中,我们尝试通过 JavaScript/jQuery 重定向到另一个 URL,但不会阻止使用超链接点击的默认行为 preventDefault

