0.2.1 • Published 7 years ago

analog-promise v0.2.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

Analog Promise

NPM version NPM monthly downloads Build Status Test coverage

一个模拟 jQuery promise 的库。

安装

Install with npm:

$ npm install analog-promise --save

使用

var analogPromise = new AnalogPromise();
//同意时
analogPromise.resolve();
//拒绝时
analogPromise.reject();
//异步处理函数写在then中
analogPromise.then(function(){});

License

MIT

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago

0.0.1

7 years ago