Merge pull request #643 from itellboy/patch-1

Update promise.md
This commit is contained in:
Ruan YiFeng
2018-04-10 10:32:38 +08:00
committed by GitHub
+1 -1
View File
@@ -484,7 +484,7 @@ someAsyncThing().then(function() {
// carry on [ReferenceError: y is not defined]
```
上面代码中,第二个`catch`方法用来捕获前一个`catch`方法抛出的错误。
上面代码中,第二个`catch`方法用来捕获前一个`catch`方法抛出的错误。
## Promise.prototype.finally()