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

Merge pull request #256 from jerossh/patch-1

240行代码块中缺少引号
This commit is contained in:
Ruan YiFeng 2016-09-07 23:07:58 +08:00 committed by GitHub
commit 2bc8eaf207

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