![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
导出excel
她,胜过漫天星辰
记录工作中不会的问题,更好的完善自己。
展开
-
vue、angular项目中,前端将数据导出为excel
1、安装qf-export-excel模块npm install qf-export-excel2、引入import qf from 'qf-export-excel'3、定义格式tableList:[ { title: '姓名', //表头 key: 'name' //对应json键名 },{ title: '年龄', key: 'age' },{原创 2021-10-11 23:35:12 · 220 阅读 · 1 评论 -
Vue使用axios处理后端数据流,导出excel
axios({ method:'get', url:'url地址', responseType:'blob',}).then(res=>{ const link=document.createElement('a'); let blob=new Blob([res.data],{type:'application/vnd.ms-excel,application/vnd.openxmlformats-offi...原创 2021-10-10 22:42:49 · 298 阅读 · 0 评论