deferred.isResolved()

deferred.isResolved()

deferred.isResolved()Returns: Booleanversion deprecated: 1.7, removed: 1.8

Description: Determine whether a Deferred object has been resolved.

This API is deprecated as of jQuery 1.7 and removed as of jQuery 1.8; please use deferred.state() instead.

Returns true if the Deferred object is in the resolved state, meaning that either deferred.resolve() or deferred.resolveWith() has been called for the object and the doneCallbacks have been called (or are in the process of being called).

Note that a Deferred object can be in one of three states: pending, resolved, or rejected; use deferred.isRejected() to determine whether the Deferred object is in the rejected state. These methods are primarily useful for debugging, for example to determine whether a Deferred has already been resolved even though you are inside code that intended to reject it.

© The jQuery Foundation and other contributors
Licensed under the MIT License.
https://api.jquery.com/deferred.isResolved

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部