js dorado 返回path
来源:互联网 发布:mac忘记密码怎么办 编辑:程序博客网 时间:2024/06/06 12:48
/**
* 返回path
* @returns
*/
function getPath(){
/* 首先判断页面上是否有dorado对象,如果有则使用dorado中的上下文路径,否则采用自己解析的方式 */
if (typeof(dorado) != "undefined"){
//Dorado 7.1.16后,common.contextPath变成了contextPath
var contextPath = dorado.Setting["common.contextPath"];
if (!contextPath){
contextPath = dorado.Setting["contextPath"];
}
//由于dorado 的contextPath在字符串的最后面多了一个/,需要去掉
contextPath = contextPath.substring(0, contextPath.length - 1);
return contextPath;
}
// 如果页面上baseurl不为空,则使用之
if ("undefined" != typeof baseurl && baseurl != null) {
return baseurl;
}
var path = window.location.pathname;
var s = path.indexOf('/', 1);
contextPath = path.substr(0, s);
if (contextPath == "/") {
contextPath = "";
}
return contextPath;
}
* 返回path
* @returns
*/
function getPath(){
/* 首先判断页面上是否有dorado对象,如果有则使用dorado中的上下文路径,否则采用自己解析的方式 */
if (typeof(dorado) != "undefined"){
//Dorado 7.1.16后,common.contextPath变成了contextPath
var contextPath = dorado.Setting["common.contextPath"];
if (!contextPath){
contextPath = dorado.Setting["contextPath"];
}
//由于dorado 的contextPath在字符串的最后面多了一个/,需要去掉
contextPath = contextPath.substring(0, contextPath.length - 1);
return contextPath;
}
// 如果页面上baseurl不为空,则使用之
if ("undefined" != typeof baseurl && baseurl != null) {
return baseurl;
}
var path = window.location.pathname;
var s = path.indexOf('/', 1);
contextPath = path.substr(0, s);
if (contextPath == "/") {
contextPath = "";
}
return contextPath;
}
0 0
- js dorado 返回path
- dorado 7 js 查询
- dorado使用中js小结
- DORADO
- dorado前台控件属性js技巧
- Dorado 7 dataset 使用数据 js
- 返回JS
- js 返回
- js返回
- dorado是什么?
- dorado 产品简介
- dorado简介
- dorado简介
- Dorado学习
- dorado简介
- dorado简介
- dorado线路
- Dorado IDE
- asp.net 中uploadify上传图片在火狐中报 http error (302)错误解决方案
- JsonHelper 帮助类
- ios--对话框异常--wait_fences: failed to receive reply: 10004003
- oracle安装之后,plsql如何连数据库
- 程序员学习英语
- js dorado 返回path
- AFNetwork特性
- 星期三的一个上午
- C语言程序设计
- 嵌入式小白之工作1
- ios开发应用程序,如何限制只能竖屏展示,旋转横屏后界面无变化
- Resources文件夹
- 默认构造函数,隐式类型转换,复制构造函数
- sscanf,sscanf_s及其相关用法