js 获取项目名称】的更多相关文章

//获取项目名称function getWebName(){ var pathName = window.location.pathname.substring(1); var webName = pathName == ''? '' : "/"+pathName.substring(0, pathName.indexOf('/')); if(webName=='/pages'||webName=='/'){ webName = ''; } return webName;}…
//获取路径 var pathName=window.document.location.pathname; //截取,得到项目名称 var projectName=pathName.substring(0,pathName.substr(1).indexOf('/')+1);…
//js获取项目根路径,如: http://localhost:8083/uimcardprj function getRootPath(){ //获取当前网址,如: http://localhost:8083/uimcardprj/share/meun.jsp var curWwwPath=window.document.location.href; //获取主机地址之后的目录,如: uimcardprj/share/meun.jsp var pathName=window.document.…
/** * 获得站点url * @return */ public String getWebUrl(){ String url = getRequest().getScheme() + "://" + getRequest().getServerName(); if(getRequest().getServerPort()!=80){ url+= ":" + getRequest().getServerPort(); } url+=getRequest().get…
request.getServletContext().getContextPath() 增加项目名称是test.那么上面的结果就是/test…
if (result.success) { var obj = JSON.parse(result.data); var sltObj = document.getElementById("selUser"); //获取select对象 for (var i = 0; i < obj.length; i++) { var optionObj = document.createElement("option"); //创建option对象 optionObj.v…
getRootPath = function(){ //获取当前网址,如: http://localhost:8080/ems/Pages/Basic/Person.jsp var curWwwPath = window.document.location.href; //获取主机地址之后的目录,如: /ems/Pages/Basic/Person.jsp var pathName = window.document.location.pathname; var pos = curWwwPath…
function getRootPath(){ //获取当前网址,如: http://localhost:8088/test/test.jsp var curPath=window.document.location.href; //获取主机地址之后的目录,如: test/test.jsp var pathName=window.document.location.pathname; var pos=curPath.indexOf(pathName); //获取主机地址,如: http://lo…
// 取当前页面名称(不带后缀名)function getPageName1(){    var a = location.href;    var b = a.split("/");    var c = b.slice(b.length-1, b.length).toString().split(".");    return c.slice(0, 1);} //取当前页面名称(带后缀名)function getPageName2() {     var str…
可用于版本让用户手动检测是否有版本更新可用. NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];  CFShow(infoDictionary); // app名称  NSString *app_Name = [infoDictionary objectForKey:@"CFBundleDisplayName"];  // app版本  NSString *app_Version = [infoD…