const link = document.createElement('a') link.style.display = 'none' link.href = this.filePath, document.body.appendChild(link) link.click() document.body.removeChild(link)
解决弹出的窗口window.open会被浏览器阻止的问题
最新推荐文章于 2024-04-19 16:30:04 发布
const link = document.createElement('a') link.style.display = 'none' link.href = this.filePath, document.body.appendChild(link) link.click() document.body.removeChild(link)