0

Vue快速实现文件夹上传 webkitdirectory

 1 year ago
source link: https://blog.51cto.com/u_15692565/5399654
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Vue快速实现文件夹上传 webkitdirectory

原创

wx62b1646e2f7f3 2022-06-21 14:34:46 博主文章分类:前端 ©著作权

文章标签 上传 代码实现 文章分类 Html/CSS 前端开发 阅读数167

快速实现文件夹上传 webkitdirectory

1、加上该属性后,点击上传效果,如下图:
Vue快速实现文件夹上传 webkitdirectory_代码实现
2、点击弹窗上传后,效果如下图:
Vue快速实现文件夹上传 webkitdirectory_代码实现_02
3、最后代码实现很简单:
<input type='file' webkitdirectory/>
  • 收藏
  • 评论
  • 分享
  • 举报

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK