const fileName = file.lastIndexOf('.'); // 取到文件名开始到最后一个点的长度
const fileNameLen = file.length; // 取到文件名长度
const fileType = file.substring(fileName + 1, fileNameLen); //

 

相关文章:

  • 2021-12-27
  • 2022-12-23
  • 2021-12-13
  • 2021-10-24
  • 2021-10-20
  • 2022-12-23
  • 2022-12-23
  • 2021-10-16
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-03
相关资源
相似解决方案