js 获取当前服务器路径

 $(document).ready(function(){
        var address=window.location.href;
        thisDLoc   =   document.location;  
        var hostport=document.location.host;      
      alert(address+"==="+hostport);

  });

你可能感兴趣的:(js 获取当前服务器路径)