mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2024-04-21 12:32:22 +00:00
240行代码缺少引号
240行代码缺少引号。
p.then((val) => console.log(fulfilled:", val))
改p.then((val) => console.log("fulfilled:", val))为
This commit is contained in:
+1
-2
@@ -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));
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user