download & excel & blob

Blob

https://developer.mozilla.org/en-US/docs/Web/API/Blob

FileReader

https://developer.mozilla.org/en-US/docs/Web/API/FileReader

download & excel

backend auto download

A response triggering the "Save As" dialog:

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition#Examples

Content-Type: text/html; charset=utf-8
Content-Disposition: attachment; filename="cool.html"
Content-Length: 22

excel & content-type

type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",

Excel & Content-Type


const File = {
name: "test.xlsx",
lastModified: 1551442905961,
lastModifiedDate: Fri Mar 01 2019 20:21:45 GMT+0800 (China Standard Time),
webkitRelativePath: "",
size: 8957,
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
};

最新文章

  1. Office 365 如何使用powershell查询邮件追踪
  2. awk(2)-模式(pattern)
  3. iOS面试题汇总
  4. cut命令
  5. 利用 PortableBasemapServer 发布地图服务
  6. Xamarin 技术全解析
  7. 异步加载JS的4种方式(详解)
  8. UIScrollView详解
  9. c与c++中的extern const的区别和联系
  10. iOS 工厂方法模式
  11. 《TCP/IP详解 卷一》读书笔记-----TCP超时重传
  12. xlistview的(java)
  13. 使用NUnit进行项目的单元测试
  14. HTML 4.01 符号实体
  15. C# - 重写虚方法
  16. 高性能 Socket 组件 HP-Socket v3.2.1-RC2 公布
  17. centos虚拟机初始化脚本
  18. c# 工具类(字符串和时间,文件)
  19. Genymotion下载慢或者下载失败的解决办法
  20. github学习(三)

热门文章

  1. 原生js switch语句
  2. #HTTP协议学习# (一)request 和response 解析
  3. 探讨CAN总线的抗干扰能力
  4. 开关电源PCB设计中的布线技巧
  5. Net Core 使用外部登陆提供程序登陆的流程,以及身份认证的流程
  6. Dozer 使用小结
  7. CM (Cloudera Manager) 的安装,便于CDH的离线部署
  8. 关于EL表达式中requestScope和param区别
  9. Maltego——互联网情报聚合工具初探(转)
  10. 20155234 昝昕明 《网络对抗技术》实验一 PC平台逆向破解