如何在Ajax请求解决Firebug的“中止”的消息? [英] How to solve Firebug’s “Aborted” messages upon Ajax requests?

查看:133
本文介绍了如何在Ajax请求解决Firebug的“中止”的消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用萤火虫 1.10.2与Firefox 14.0.1。当显示一个网页时,Firebug插件有这个现象的 Firebug的中止在Ajax请求

I am using Firebug 1.10.2 with Firefox 14.0.1. When showing a web page, the Firebug add-on has this "behavior": Firebug’s "Aborted" message upon Ajax request.

我应该怎么做?它是非常危险的,我必须提高我的web应用程序,因为一些错误的presence,或者它是一个Firebug的错误还是其他什么东西?

What should I make? Is it so dangerous that I must improve my web application because the presence of some error, or it is a Firebug bug or something else?

推荐答案

请参见例如这里XHR的open()的文档: https://developer.mozilla.org/en-US/docs / DOM / XMLHtt prequest

Please see the documentation of XHR open() for example here: https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest

请注意:调用此方法已经激活请求(一个用于其   open()或openRequest()已经被调用)是相当于   呼叫中止()。

Note: Calling this method an already active request (one for which open()or openRequest()has already been called) is the equivalent of calling abort().

每当您必须有一个刚刚创建一个新的XHR实例。更重要的是,使用jQuery或其它JS库去做AJAX。它应该保护你从这些复杂问题。

Just create a new XHR instance whenever you need one. Better yet, use jQuery or other JS library to do AJAX. It should shield you from these intricacies.

这篇关于如何在Ajax请求解决Firebug的“中止”的消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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