cocos creator 支持 字符模板嘛?

如题
let a = ‘hello’;
let b =’${a},world’;
现在支持这样的字符串模板功能嘛?


let a = 123;
let b = 'abc';
let c = `String :${b}, Number:${a} `;
console.log(c) // String :abc, Number:123

1赞

谢谢,字符串模板要用`````符号,就是1左边的那个,而不是 ’ ’ 引号。