javascript - Getting initial object from promise -


I want to access the original jqXHR object in the form of $ .jax (ajaxOpts), is it possible in some way ? I now make a promise.

  var jqXHR = $ AjaxOpts .done (dfd.resolve) .fail (dfd.reject). Then (next, next);  

to:

jqXHR objects return $ .ajax () implement the promise interface as jQuery 1.5, giving them all the properties, methods and behavior of the promise (see the deferred item for more information)

You can already get a jqXHR object (which is a superset of the XMLHTTPRequest object) it only applies the promise interface.

  var jqXHR = $ .ajax (ajaxOpts); Console.log (Typef jqXHR.abort); JqXHR.done (dfd.resolve) .fail (dfd.reject) Then (next, next);  

Comments

Popular posts from this blog

c# - The item with identity 'Id' already exists in the metadata collection. Parameter name: item -

sql - PostgreSQL automatically update row at specific date -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -