正常来说已经使用es6 的 模板了如``
//页面层 layer.open({ type: 1, content:``});
- 穿衣 [${this.life.chuanyi[0]}]:
${this.life.chuanyi[1]}
- 感冒 [${this.life.ganmao[0]}]:
${this.life.ganmao[1]}
- 运动 [${this.life.yundong[0]}]:
${this.life.yundong[1]}
- 空调 [${this.life.kongtiao[0]}]:
${this.life.kongtiao[1]}
- 紫外线 [${this.life.ziwaixian[0]}]:
${this.life.ziwaixian[1]}
但极少情况下还是使用原始的拼接,以下这种方法会比较舒服
var panelBuffer = '\'; var pickerBuffer = '\ \ \ \\\\\';\ \\\
\ \