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

Update promise.md

shouldn't use cooma.
This commit is contained in:
GJ Wang 2018-04-09 22:52:56 +08:00 committed by GitHub
parent 893a34ba27
commit 2416e5685b
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] // carry on [ReferenceError: y is not defined]
``` ```
上面代码中,第二个`catch`方法用来捕获前一个`catch`方法抛出的错误。 上面代码中,第二个`catch`方法用来捕获前一个`catch`方法抛出的错误。
## Promise.prototype.finally() ## Promise.prototype.finally()