HTML5 download file All In One
HTML5 download file All In One
HTML5 download & Fetch API & File API & Blob
https://scarletsky.github.io/2016/07/03/download-file-using-javascript/
auto download images
https://www.w3schools.com/TAGS/att_a_download.asp
<p>Click on the image to download it:<p>
<a href="/images/myw3schoolsimage.jpg" download>
img
</a>
HTML5 download 执行条件
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#download
download normal file
download blob file
https://github.com/xgqfrms/HTML5/issues/11
refs
https://github.com/eligrey/FileSaver.js/blob/master/FileSaver.js
https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL
https://developer.mozilla.org/en-US/docs/Web/API/Blob
http://stackoverflow.com/questions/19327749/javascript-blob-filename-without-link
http://blog.bguiz.com/2014/07/03/file-download-with-http-request-header/
©xgqfrms 2012-2020
www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/10082870.html
未经授权禁止转载,违者必究!