1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 18: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:
Jon 2016-09-06 09:35:18 +08:00 committed by GitHub
parent 3cbb8476e3
commit 3d6368c404

View File

@ -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));
```