本文最后更新于 2304 天前,其中的信息可能已经有所发展或是发生改变。
//JS文件中获取contextPath的方法
function getContextPath() {
var contextPath = document.location.pathname;
var index =contextPath.substr(1).indexOf("/");
contextPath = contextPath.substr(0,index+1);
delete index;
return contextPath;
}


跪求网站前端模板。