1.excel文件类型
accept=‘application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel‘
2.zip文件类型
accept=‘.zip‘
通过文件的type属性比较
file.type === ‘application/x-zip-compressed‘
原文地址:https://www.cnblogs.com/heroljy/p/9875897.html
时间: 2024-10-18 06:46:39