更新时间:2022-03-16 04:51:55
你在谈论模板文字。
它们允许多行字符串和字符串插值。
They allow for both multiline strings and string interpolation.
多行字符串:
console.log(`foo
bar`);
// foo
// bar
字符串插值:
var foo = 'bar';
console.log(`Let's meet at the ${foo}`);
// Let's meet at the bar