wdw31210
 var js = document.scripts;
 js = js[js.length - 1].src.substring(0, js[js.length - 1].src.lastIndexOf("/") + 1);

  

如路径为 http://localhost:24395/ABC/XX/a.js

结果会得到    http://localhost:24395/ABC/XX/

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2022-03-09
  • 2022-12-23
  • 2021-12-26
猜你喜欢
  • 2021-05-28
  • 2021-12-20
  • 2022-12-23
  • 2022-01-05
  • 2022-01-23
  • 2022-12-23
相关资源
相似解决方案