jQuery deferred.progress()Method

jQuery 杂项方法jQuery Miscellaneous Methods


Definition and Usage

The deferred.progress() function calls the added handlers when the Deferred object generates progress notifications.

Note:When the Deferred object generates progress notifications by calling notify or notifyWith, the progressCallbacks will be invoked. Because deferred.progress() returns the Deferred object, other Deferred object methods can be chained to this object. When the Deferred object is resolved or rejected, the progress callback functions will no longer be invoked.


Syntax

deferred.progress( progressCallbacks )

Parameters Description
progressCallbacks Function type A function or an array of functions, called when the Deferred object generates progress notifications.


jQuery 杂项方法jQuery Miscellaneous Methods

Other Extensions