//js获取项目根路径,如: http://localhost:8083/test
// /test
function getRootPath(){var pathName=window.document.location.pathname;
//获取带"/"的项目名,如:/test
var projectName=pathName.substring(0,pathName.substr(1).indexOf('/')+1);
return projectName;
}
//js获取项目根路径,如: http://localhost:8083/test
// /test
function getRootPath(){