js获取baseurl

/********获取basePath********/
var curPath = window.document.location.href;
var PERFIX;
PERFIX = curPath.substring(0,curPath.indexOf("web"));
posted @ 2018-08-02 13:32  11cnblogs  阅读(2999)  评论(0编辑  收藏  举报