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

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -

c++ - Redefined variable in the other module -

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