1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 18:32:22 +00:00

修复promise.md符号错误

将全角单引号修正为半角单引号
This commit is contained in:
P-ppc 2017-05-19 17:53:59 +08:00 committed by GitHub
parent 6cffe77c7c
commit 2f89b0de2d

View File

@ -633,7 +633,7 @@ console.log('one');
// three
```
上面代码中,`setTimeout(fn, 0)`在下一轮“事件循环”开始时执行,`Promise.resolve()`在本轮“事件循环”结束时执行,`console.log(one)`则是立即执行,因此最先输出。
上面代码中,`setTimeout(fn, 0)`在下一轮“事件循环”开始时执行,`Promise.resolve()`在本轮“事件循环”结束时执行,`console.log('one')`则是立即执行,因此最先输出。
## Promise.reject()