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

cmake set_source_files_properties not working properly -

python - Writing Greek in matplotlib labels, titles -

Pygame memory leak with transform.flip -