input文件选择,限定文件类型

input选择文件——限制类型

添加 accept 属性

<input type="file" accept="">

excel 文件:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel

 

posted @ 2021-08-30 13:55  最初的样子  阅读(923)  评论(0编辑  收藏  举报