1.excel文件类型

accept='application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel'

2.zip文件类型

accept='.zip'

通过文件的type属性比较

file.type === 'application/x-zip-compressed'

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-01
  • 2021-09-16
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-18
  • 2022-12-23
  • 2021-04-04
  • 2022-01-07
  • 2022-12-23
相关资源
相似解决方案