| 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(); | 
 |