参考:https://blog.csdn.net/u012664198/article/details/82700024

      var urlPath = window.document.location.href;  //浏览器显示地址 http://10.15.5.83:5555/ISV/demo.aspx?a=1&b=2
        var docPath = window.document.location.pathname; //文件在服务器相对地址 /ISV/demo.aspx
        var index = urlPath.indexOf(docPath);
        var serverPath = urlPath.substring(0, index);

相关文章:

  • 2021-09-15
  • 2021-09-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-04
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案