【jquery】ajax请求
1. defferred对象
实现链式回调函数编程。
http://www.ruanyifeng.com/blog/2011/08/a_detailed_explanation_of_jquery_deferred_object.html
- def.done(d,[d])
- def.fail(failCallbacks)
def.isRejected()1.8-def.isResolved()1.8-- def.reject(args)
- def.rejectWith(c,[a])
- def.resolve(args)
- def.resolveWith(c,[a])
- def.then(d,f,[,p])1.7*
- def.promise([ty],[ta])
- def.pipe([d],[f],[p])1.7*
- def.always(al,[al])
- def.notify(args)1.7+
- def.notifyWith(c,[a])1.7+
- def.progress(proCal)1.7+
- def.state()1.7+
- cal.add(callbacks)1.7+
- cal.disable()1.7+
- cal.empty()1.7+
- cal.fire(arguments)1.7+
- cal.fired()1.7+
- cal.fireWith([c] [,a])1.7+
- cal.has(callback)1.7+
- cal.lock()1.7+
- cal.locked()1.7+
- cal.remove(callbacks)1.7+
- $.callbacks(flags)1.7+
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。