模板字面量 是允许嵌入表达式的字符串字面量。你可以使用多行字符串和字符串插值功能。
1.多行字符串
console.log(`string text line 1
string text line 2`);
// "string text line 1
// string text line 2"
2.插入表达式
var a = 5;
var b = 10;
console.log(`Fifteen is ${a + b} and
not ${2 * a + b}.`);
// "Fifteen is 15 and
// not 20."