jQuery deferred.state() 方法
jQuery 教程
· 2019-03-29 23:37:36
定义和用法
deferred.state() 函数用于确定一个Deferred(延迟)对象的当前状态。
注意: deferred.state() 方法返回一个字符串,代表Deferred(延迟)对象的当前状态。Deferred 对象可以在三种状态之一:
- "pending" : Deferred 对象是尚未完成状态 。
- "resolved" : Deferred 对象是在解决状态,这意味着对象的 deferred.resolve() 或者 deferred.resolveWith()已被调用并且 doneCallbacks 已被调用(或在被调用的过程中) 。
- "rejected" : Deferred 对象是在被拒绝的状态,这意味着对象的 deferred.reject() 或者 deferred.rejectWith() 已被调用并且 failCallbacks 已被调用(或在被调用的过程中) 。
语法
这个方法不接受任何参数。
deferred.state()
点击查看所有 jQuery 教程 文章: https://www.codercto.com/courses/l/35.html
Programming Computer Vision with Python
Jan Erik Solem / O'Reilly Media / 2012-6-22 / USD 39.99
If you want a basic understanding of computer vision's underlying theory and algorithms, this hands-on introduction is the ideal place to start. As a student, researcher, hacker, or enthusiast, you'll......一起来看看 《Programming Computer Vision with Python》 这本书的介绍吧!