1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-28 21:32:20 +00:00

Merge pull request #477 from Jet12138/patch-2

453行,显示的结果应为字符串"3"
This commit is contained in:
Ruan YiFeng 2017-08-17 20:10:13 +08:00 committed by GitHub
commit cfaa97650e

View File

@ -450,7 +450,7 @@ var y = 2;
var obj = {x: 1, y: 2};
`${obj.x + obj.y}`
// 3
// "3"
```
模板字符串之中还能调用函数。