We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
第166天 怎么下载一个zip文件?
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
window.open(fileUrl)
download
<!-- download:指定下载文件的文件名 --> <a href="http://somehost/somefile.zip" download="filename.zip">Download file</a>
var a = document.createElement('a'); var url = window.URL.createObjectURL(blob); var filename = 'what-you-want.txt'; a.href = url; a.download = filename; a.click(); window.URL.revokeObjectURL(url);
请求接口返回流文件,再利用a标签 download属性下载。
No branches or pull requests
第166天 怎么下载一个zip文件?
The text was updated successfully, but these errors were encountered: