知行合一,跬步致远
博客首页
GitHub
关于博主
☛ Axios
关注
分享
复制链接
分享到 QQ
分享到新浪微博
扫一扫
关注数:
0
文章数:
1
文章阅读量:
12565
文章收藏量:
11
作者:
大龙Aiden
Fuck the God
展开
axios请求文件流下载文件
axios.post('/api',{ // 传参},{ responseType:'blob' // 设置响应数据类型}).then(res=>{ if (res.status == 200) { let url = window.URL.createObjectURL(new Blob([res.data])) ...
原创
2019-04-30 16:07:49 ·
12566 阅读 ·
0 评论