function getRootPath(){ var curPageUrl = window.document.location.href; var rootPath = curPageUrl.split("//")[0] + curPageUrl.split("//")[1].split("/")[0] + "/" + curPageUrl.split("//")[1].split("/")[1]; return rootPath; }

相关文章:

  • 2022-12-23
  • 2021-05-17
猜你喜欢
  • 2021-09-11
  • 2021-11-27
  • 2021-11-27
  • 2021-11-27
  • 2021-09-04
相关资源
相似解决方案