es6TemplateString 使用ejs和multiline实现ES6 Template String的功能
es6TemplateString使用ejs和multiline实现ES6 Template String的功能ES6 Template String支持的功能//Basic usage with an expression placeholder var person = 'Hao Ju Zheng'; console.log(`Yo! My name is ${person}`); //Expressions work just as well with object literals var user = {name: 'Zhen Ou Yun'}; console.log(`Thanks, ${user.name}`); //Expression interpolation, One use is readable inline math. var a = 50; var
下载地址
用户评论