//js 获取项目的 ip 和端口号

    var curPath = window.document.location.href;
    var pathname = window.document.location.pathname;
    var pos = curPath.indexOf(pathname);
    var localhostPath = curPath.substring( 0, pos );

    console.log( localhostPath );

相关文章:

  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
  • 2021-10-28
猜你喜欢
  • 2021-12-15
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2021-09-01
相关资源
相似解决方案