示例:<input class="easyui-filebox" data-options="buttonText:'选择文件',accept:'application/vnd.ms-excel'"/>
这样设置过后,选择文件的时候只有后缀为*.xls 的文件才会显示。
$('#file').filebox({accept: 'application/msword'})
时间:2021-08-28 12:06:58
示例:<input class="easyui-filebox" data-options="buttonText:'选择文件',accept:'application/vnd.ms-excel'"/>
这样设置过后,选择文件的时候只有后缀为*.xls 的文件才会显示。
$('#file').filebox({accept: 'application/msword'})