3.1 下载文件
1. 后端设置 header, 并将文件流返回response.setContentType("application/vnd.ms-excel");response.setHeader("Content-disposition", "attachment;filename*=utf-8''" + URLEncoder.encode("your file name", "UTF-8") + ".xlsx");// 将文件流返回参考: https://developer.mozilla.org/z
原创
2022-03-20 15:44:31 ·
754 阅读 ·
0 评论