Q.js手册

入门

Q模块可以这样加载:

  • A <script> tag (creating a Q global variable): ~2.5 KB minified and gzipped.
  • A Node.js and CommonJS module, available in npm as the q package
  • An AMD module
  • A component as `microjs/q``
  • Using bower as q#1.0.1
  • Using NuGet as Q

Q can exchange promises with jQuery, Dojo, When.js, WinJS, and more.