JQuery equivalent of Node.js Step / Async modules
Do you know any JQuery plugin which is equivalent of Node.js Step or Async modules? Here are descriptions:
https://github.com/creationix/step/blob/maste开发者_JAVA百科r/README.markdown https://github.com/caolan/async/blob/master/README.md
$.Deferred
jQuery has deferred execution in it's API. That's simply what step and async do. Use this.
Caolan McMahon has written async library which can be used both in the browser and Node. This way you can share the same code if you want to switch from node <--> browser.
精彩评论