前端使用JS内置Blob实现下载各种形式的文件实例-牛翰网

前端使用JS内置Blob实现下载各种形式的文件实例

axios调用后端下载接口(在请求体中加上responseType: 'blob') export const fileDownload = (data) => request({ method: 'post', url: '/heritage/fileDownload', responseType: 'blob', da...