ES6 模板语法和分隔符

let user = 'Barret';
console.log(`Hi ${user}!`); // Hi Barret!

 

posted @ 2019-04-09 15:52  随★风  阅读(539)  评论(0编辑  收藏  举报