-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
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
[html] 第57天 你了解HTML5的download属性吗? #236
Comments
|
之前做流下载的时候设置过download属性,将下载文件的名称变为用户名,但真不知道兼容性😀 |
@YiXing170 那怎么上线呢?难道是我看错了兼容性 |
我司只兼容chrome,哈哈 |
我倒是用过,用它来下载base64格式的图片,兼容性倒是不咋地 |
自定义下载文件的名称 |
今年了解到的特性,在项目中使用过几次了,很好用,实乃居家旅行必备,只是资源需要在同源地址下。 |
|
download 属性规定被下载的超链接目标,该属性也可以设置一个值来规定下载文件的名称。兼容性各异,Chrome和Firefox仅支持加载同源链接.。 |
|
第57天 你了解HTML5的download属性吗?
The text was updated successfully, but these errors were encountered: