https://github.com/think2011/es7-async-await-demo
基于babel6的ES7特性,async await的demo。
https://github.com/think2011/es7-async-await-demo
Last synced: 12 months ago
JSON representation
基于babel6的ES7特性,async await的demo。
- Host: GitHub
- URL: https://github.com/think2011/es7-async-await-demo
- Owner: think2011
- Created: 2015-11-09T04:45:59.000Z (over 10 years ago)
- Default Branch: demo
- Last Pushed: 2015-11-22T13:44:21.000Z (over 10 years ago)
- Last Synced: 2024-04-13T16:27:44.236Z (about 2 years ago)
- Language: JavaScript
- Size: 240 KB
- Stars: 24
- Watchers: 5
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ES7-Async-Await-Demo
基于babel6的ES7特性,async await的demo。
## 有2个例子
1. `sleep.js` 模拟类似PHP中sleep方法的例子
2. `app.js` 批量给电影文件下载海报的例子

## 启动
* npm i
* npm start
P.S: 修改 `bootstrap.js` 中的注释来切换2个例子