mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-25 03:02:21 +00:00
commit
2bc8eaf207
@ -242,8 +242,7 @@ p.then((val) => console.log("fulfilled:", val))
|
||||
.catch((err) => console.log("rejected:", err));
|
||||
|
||||
// 等同于
|
||||
|
||||
p.then((val) => console.log(fulfilled:", val))
|
||||
p.then((val) => console.log("fulfilled:", val))
|
||||
.then(null, (err) => console.log("rejected:", err));
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user