在html中用js代替${pagecontext.request.getcontextpath}这样就不用使用jsp了


  var pathArray = window.location.pathname.split('/');
  var secondLevelLocation = pathArray[1];
  var loginUrl = window.location.protocol + "//"  + window.location.host + "/"+ secondLevelLocation;

  

posted on 2017-12-20 18:39  知了不了了之  阅读(2892)  评论(0编辑  收藏  举报