-
let name = 'cc' let age = 18 let str = '他是' + name + ',他' + age + '岁' //字符串模板: let str = `他是${name},他${age}岁` console.log(str)
ECMAScript 6知识点总结 --- 字符串模板
最新推荐文章于 2024-08-18 02:28:09 发布
let name = 'cc'
let age = 18
let str = '他是' + name + ',他' + age + '岁'
//字符串模板:
let str = `他是${name},他${age}岁`
console.log(str)