dicUrl: this.$VUE_HOST.webApi + "/blade-system/menu/tree",
window.open(`${this.$VUE_HOST.webApi}/flowdetail/export?queryTime=${this.query.queryTime}&materialName=${this.query.materialName}&addresseeMonth=${this.query.addresseeMonth}`);
<excel-popup :excelAction='`${this.$VUE_HOST.webApi}/priceCurve/import`'></excel-popup>
url: `/eduservice/teacher/pageTeacherCondition/${current}/${limit}`,
注意:在JS中想要使用${}获取变量 要在 ``中使用。
``是模板字符串,模板字符串里面${var}是变量的占位符。
//最大优势,支持换行字符串
const url = 'http://www.baidu.com'
const text = '百度一下,你就知道'
const html = `
<div class="container">
<a href="${url}">${text}</a>
</div>
`
console.log(html)
console.log(typeof html) // string
vue实列中
:title="`${dialogIsEdit ? '修改' : '新建'}提醒`"