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()