在大家对SPS文档库页面中的文档上下文菜单进行定制的时候,几乎免不了和两个很常见的变量打交道:ctx、itemTable,通过它们的某些属性,就能够得到相关文档的很多信息,供开发人员使用。但是它们到底一共有哪些参数呢?呵呵,已经有几个朋友表示过郁闷了,希望下面的文字能够让大家不再郁闷。
ctx变量是一个名为ContextInfo的自定义类型,它的完整定义可以在ows.js的第10031行找到,如下:
function ContextInfo()
{
this.listBaseType = null;
this.listTemplate = null;
this.listName = null;
this.listUrlDir = null;
this.HttpPath = null;
this.HttpRoot = null;
this.p_w_picpathsPath = null;
this.PortalUrl = null;
this.isWebEditorPreview = null;
this.rootFolderForDisplay = null;
this.isPortalTemplate = null;
this.isModerated = false;
this.recursiveView = false;
this.displayFormUrl = null;
this.editFormUrl = null;
this.newFormUrl = null;
this.ctxId = null;
}
itemTable变量实际上就是一个Table类型的页面对象,但是它有一些额外自定义的属性,如下:
SourceUrl
COUId
FSObjType
DocIcon
FileType
HTMLType
FileDirRef
ServerUrl
ItemId
CTXName
至于这些属性的作用,大家应该都能够望名知意,就不用再额外解释了,呵呵。
ows.js里面的ctx和itemTable到底有哪些参数?
原创
©著作权归作者所有:来自51CTO博客作者kaneb0y的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
手把手教你在不同平台搭建Node.js环境
本文将详细介绍如何在Windows和Linux系统上搭建Node.js环境,让你轻松开始Node.js的开发之旅
Arch Windows Nodejs -
openresty ngx.ctx表
在 OpenResty 的体
ngx.ctx lua 数据共享 数据 -
jsp之${CTX}理解java经验集锦 通用实践 JSP java spring
-
java tcc 代码 java中ctx
学习参考:http://www.w3school.com.cn/js/js_htmldom.asp Javascript是一种脚本语言,区分大小写。 获取html语言中的元素:Var x = document.getElementByIdx_x_x_x
java tcc 代码 javascript java js python
















