1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-25 11:12:21 +00:00

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
commit 3ec27d3ab9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -484,7 +484,7 @@ someAsyncThing().then(function() {
// carry on [ReferenceError: y is not defined]
```
上面代码中,第二个`catch`方法用来捕获前一个`catch`方法抛出的错误。
上面代码中,第二个`catch`方法用来捕获前一个`catch`方法抛出的错误。
## Promise.prototype.finally()