'算得上是-test.pdf' 获取文件名

 

var str = 'http://aaa.com/s/ddd/算得上是-test.pdf';

console.log(str.match(/([^/*.]+)\.\w+$/))

console.log(str.match(/([^/*.]+)\.\w+$/)[0]) //

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-20
  • 2021-10-19
  • 2022-02-25
  • 2022-12-23
猜你喜欢
  • 2021-04-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-22
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案