html input=“file“ 只显示指定文件类型 xls、xlsx、csv
<!-- 只显示csv文件 -->
<input id="fileSelect" type="file" accept=".csv" />
<!-- 只显示xlsx文件 -->
<input id="fileSelect" type="file" accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" />
<!-- 只显示xls文件 -->.
原创
2020-12-15 14:19:32 ·
1210 阅读 ·
0 评论