let fileName = this.file.name.lastIndexOf(".");//取到文件名开始到最后一个点的长度
let fileNameLength = this.file.name.length;//取到文件名长度
let fileFormat = this.file.name.substring(fileName + 1, fileNameLength);//
console.log(fileFormat);

 

相关文章:

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