jQuery deferred.isResolved()Method

jQuery 杂项方法jQuery Miscellaneous Methods


Definition and Usage

The deferred.isResolved() function is used to determine whether the Deferred object has been resolved.
Note:1. Deprecated since jQuery 1.7,Please use deferred.state() instead. It returns true if the Deferred object is in the resolved state. This means that deferred.resolve() or deferred.resolveWith() has been called on the object, and doneCallbacks have been called (or are currently being called).
2. A Deferred object can have three states: pending, resolved, or rejected; use deferred.isRejected() to determine whether the deferred object is in the rejected state.


Syntax

Tip:This method does not accept any parameters.
deferred.isResolved()


jQuery 杂项方法jQuery Miscellaneous Methods

Other Extensions