摘要: export function downloadFile(data, fileName){ const a = document.createElement('a') let href = window.URL.createObjectURL(new Blob(["\ufeff", data], { 阅读全文
posted @ 2022-04-07 11:09 阿磊小哥哥呀 阅读(32) 评论(0) 推荐(0) 编辑
摘要: f = request.files.get("file") f.stream.read() 阅读全文
posted @ 2022-04-07 11:05 阿磊小哥哥呀 阅读(474) 评论(0) 推荐(0) 编辑
摘要: response = make_response('文件二进制') response.headers["Content-Disposition"] = "attachment; filename=%s" % file_name response.headers["Content-type"] = " 阅读全文
posted @ 2022-04-07 11:04 阿磊小哥哥呀 阅读(776) 评论(0) 推荐(0) 编辑