模板字符串 基本用法 var a = 'sub' console.log(`<div>hh</div> ${a} <span>book2</span>`); 反引号(``)可以定义多行字符串,${}用来在模板字符串中嵌入变量