利用ES6中的模板字符串轻松实现多行和字符串值的插入
多行字符串
// Multiline strings `In JavaScript template strings can run over multiple lines, but double and single quoted strings cannot.` // 如打印或者输出,是多行的结构
字符串值的插入
// String interpolation var name = 'Bob', time = 'today'; `Hello ${name}, how are you ${time}?` // console: "Hello Bob, how are you today?"