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

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

正在学习ES6,收货良多。
This commit is contained in:
Jet 2017-08-17 17:05:53 +08:00 committed by GitHub
parent 65d6aff64c
commit d69da6aa65

View File

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