Merge pull request #410 from P-ppc/fix-promise

修复promise.md符号错误
This commit is contained in:
Ruan YiFeng
2017-05-20 19:02:06 -05:00
committed by GitHub
+1 -1
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()