推荐一个nodejs的promise库
2016-03-12 12:44
597 查看
http://bluebirdjs.com/docs/getting-started.html
Getting Started
This article is partially or completely unfinished. You are welcome to create pull requests to help completing this article.
Node.js
npm install bluebird
Then:
var Promise = require(“bluebird”);
Browsers
(See also Installation.)
There are many ways to use bluebird in browsers:
Direct downloads
Full build bluebird.js
Full build minified bluebird.min.js
Core build bluebird.core.js
Core build minified bluebird.core.min.js
You may use browserify on the main export
You may use the bower package.
When using script tags the global variables Promise and P (alias for Promise) become available. Bluebird runs on a wide variety of browsers including older versions. We’d like to thank BrowserStack for giving us a free account which helps us test that.
Getting Started
This article is partially or completely unfinished. You are welcome to create pull requests to help completing this article.
Node.js
npm install bluebird
Then:
var Promise = require(“bluebird”);
Browsers
(See also Installation.)
There are many ways to use bluebird in browsers:
Direct downloads
Full build bluebird.js
Full build minified bluebird.min.js
Core build bluebird.core.js
Core build minified bluebird.core.min.js
You may use browserify on the main export
You may use the bower package.
When using script tags the global variables Promise and P (alias for Promise) become available. Bluebird runs on a wide variety of browsers including older versions. We’d like to thank BrowserStack for giving us a free account which helps us test that.
相关文章推荐
- 利用promise写出更加优美的nodejs程序
- Node.js中Process.nextTick()和setImmediate()的区别
- node浅析-npm自带
- [nodejs] nodejs开发个人博客(五)分配数据
- Node.js的Express框架使用上手指南
- Node.js编写爬虫的基本思路及抓取百度图片的实例分享
- 深入浅出Node.js(二):Node.js&NPM的安装与配置
- 安装node多版本管理器nvm,以及nvm常用命令
- Node.js中setTimeout和setInterval的使用
- parentNode、parentElement,childNodes、children 它们有什么区别呢?
- DOM parentNode
- DOM children childNodes nodetype
- Node.js全局对象
- Node.js项目中调用JavaScript的EJS模板库的方法
- Node.js最新技术栈之Promise篇
- java poi excel node
- NodeJS学习笔记
- nodejs+express一个很经典的问题--异步获取数据模板渲染
- NodeJS写日志_Log4js使用详解+常见艰难的解决
- 使用Mocha进行Node.js的单元测试