453行,显示的结果应为字符串"3"

正在学习ES6,收货良多。
This commit is contained in:
Jet
2017-08-17 17:05:53 +08:00
committed by GitHub
parent 65d6aff64c
commit d69da6aa65
+1 -1
View File
@@ -450,7 +450,7 @@ var y = 2;
var obj = {x: 1, y: 2};
`${obj.x + obj.y}`
// 3
// "3"
```
模板字符串之中还能调用函数。