Helius
2021-01-21 a23d395bb81f7ce64dfe9c18e1037d6c881f4f7d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/**
 * 加载后台运行时支持的css样式和js脚本
 * by 姜友瑶
 * 2015-12-1
 */
function getRootPath() {
    var curWwwPath = window.document.location.href;
    console.log(curWwwPath);
    var pathName = window.document.location.pathname;
    var url = curWwwPath.substring(0, curWwwPath.indexOf(pathName));
    return url;
}
 
/** 全局路径,代表当前网站的根URL */
var basePath = getRootPath();