let a = document.createElement("a")
a.href = "/static/config/file/产品服务目录.xlsx"
a.download = "产品服务目录.xlsx"
a.style.display = "none"
document.body.appendChild(a)
a.click()
a.remove()
标签:appendChild,文件,vue,xlsx,href,static,document,目录,下载
来源: https://www.cnblogs.com/webljl/p/16469052.html