为什么AJAX返回HTTP状态代码0? [英] Why is AJAX returning HTTP status code 0?

查看:211
本文介绍了为什么AJAX返回HTTP状态代码0?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

出于某种原因,在使用AJAX时(使用我的破折号开发的应用程序),浏览器将停止上传并返回状态代码 0 。为什么会发生这种情况?

For some reason, while using AJAX (with my dashcode developed application) the browser just stops uploading and returns status codes of 0. Why does this happen?

推荐答案

另一种情况:

如果您已发送AJAX调用并且在获取AJAX响应之前触发了浏览器刷新,则可能会获得状态代码 0 。 AJAX通话将被取消,您将获得此状态。

It could be possible to get a status code of 0 if you have sent an AJAX call and a refresh of the browser was triggered before getting the AJAX response. The AJAX call will be cancelled and you will get this status.

这篇关于为什么AJAX返回HTTP状态代码0?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆