function getContextPath() {
??? var pathName = document.location.pathname;
??? var index = pathName.substr(1).indexOf("/");
??? var result = pathName.substr(0,index+1);
??? return result;
}
1 楼
tiandw
2011-09-23
如果一个服务器部署多个项目就不可以