指定上传类型为excel:加上accept="application/vnd.ms-excel"即可,只兼容chrome跟ff,不兼容ie
<input type="file" name="file" id="file" style="width: 250px;" class="easyui-validatebox" data-options="required:true" accept="application/vnd.ms-excel"/>
2023-10-13 23:46:46
指定上传类型为excel:加上accept="application/vnd.ms-excel"即可,只兼容chrome跟ff,不兼容ie
<input type="file" name="file" id="file" style="width: 250px;" class="easyui-validatebox" data-options="required:true" accept="application/vnd.ms-excel"/>