input类型为file时,accept为表格xlsl

<input type="file" accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet">

这样选择文件的时候只能看到xlsl表格文件

猜你喜欢

转载自blog.csdn.net/qq_42667613/article/details/121637027
今日推荐