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

java - Ajax call to jsp and jsp redirecting to further jsp -

c# - Roxy file manager in MVC doesn't accept session path -

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