📜  角度反引号 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:03:52.104000             🧑  作者: Mango

代码示例1
//That is called Template literals and it's a javascript feature, 
//it is not typescript specific.

//you can replace this:
const url = `${this.heroesUrl}/${hero.id}`;

//With
const url = this.heroesUrl + "/" hero.id;