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+