会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
爱代码三千
博客园
首页
新随笔
联系
订阅
管理
2020年10月30日
axios获取文件流并下载文件
摘要: 首先给axios设置 responseType:'blob' 下载方式:一、使用a标签下载 axios.post(url,data,{responseType:'blob'}).then(res => { const blob = new Blob([res.data]);//处理文档流 const
阅读全文
posted @ 2020-10-30 10:33 爱代码三千
阅读(6799)
评论(0)
推荐(3)
编辑
公告