摘要: 在页面中插入 a 标签方式下载文件,避免新开窗口导致的闪烁 1 function downloadFile(file) { 2 fetch(file.fileUrl) 3 .then(res => res.blob()) 4 .then(blob => { 5 const a = document. 阅读全文
posted @ 2022-11-17 14:53 yuhui_yin 阅读(86) 评论(0) 推荐(0) 编辑