https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
var a = 5; var b = 10; console.log(`Fifteen is ${a + b} and not ${2 * a + b}.`); // "Fifteen is 15 and // not 20."
需要注意的是ie不支持
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
var a = 5; var b = 10; console.log(`Fifteen is ${a + b} and not ${2 * a + b}.`); // "Fifteen is 15 and // not 20."
需要注意的是ie不支持