【前端_js】ES6中的模板字符串
ES6中提供了模版字符串,用`(反引号)标识,用${variable}将变量括起来
$("#result").append(`He is <b>${person.name}</b>and we wish to know his${person.age}.that is all`);
ES6中提供了模版字符串,用`(反引号)标识,用${variable}将变量括起来
$("#result").append(`He is <b>${person.name}</b>and we wish to know his${person.age}.that is all`);