autoDownload(blob, fileName){
const objectUrl = window.createObjectUrl(blob)
const a = document.createElement('a')
a.href = objectUrl
a.download = [fileName]
a.click()
window.URL.revokeObjectUrl(objectUrl)
}
autoDownload(blob, fileName){
const objectUrl = window.createObjectUrl(blob)
const a = document.createElement('a')
a.href = objectUrl
a.download = [fileName]
a.click()
window.URL.revokeObjectUrl(objectUrl)
}
本文标题:浏览器自动下载文件
本文链接:https://www.haomeiwen.com/subject/dcibnftx.html
网友评论