反撇号(`) 反单引号 

var user = {name: Vicent};

console.log(`my name is ${user.name}`);

打印结果:my name is Vicent

http://www.infoq.com/cn/articles/es6-in-depth-template-string

相关文章:

  • 2021-12-13
  • 2022-12-23
  • 2021-07-21
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2021-11-11
相关资源
相似解决方案