Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fengdonglp/fd-promise

根据Promise/A+规范实现一个Promise(ES5)
https://github.com/fengdonglp/fd-promise

javascript promise

Last synced: 24 days ago
JSON representation

根据Promise/A+规范实现一个Promise(ES5)

Awesome Lists containing this project

README

        

# ES5实现的Promise
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## 实现的Api
- Promise.prototype.then
- Promise.prototype.catch
- Promise.prototype.finally
- Promise.resolve
- Promise.reject
- Promise.all
- Promise.race

参考:
[http://www.cnblogs.com/huansky/p/6064402.html](http://www.cnblogs.com/huansky/p/6064402.html)
[http://bruce-xu.github.io/blogs/js/promise](http://bruce-xu.github.io/blogs/js/promise)