How to solve Firebug’s “Aborted” messages upon Ajax requests?

前端 未结 2 1563
广开言路
广开言路 2020-12-07 02:59

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.

2条回答
  •  天涯浪人
    2020-12-07 03:14

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

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

    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.

提交回复
热议问题