码迷,mamicode.com
首页 > 其他好文 > 详细

dotcms总结

时间:2018-01-10 11:31:17      阅读:182      评论:0      收藏:0      [点我收藏+]

标签:tle   dia   hit   参数传递   htm   script   targe   multiple   name   

dwr

    javaScript调用Java


dojo

使用:

1.dojo.require("dotcms.dijit.form.ContentSelector");

<div jsId="contanierStructsId" id="<%= relationJsName %>Dialog" dojoType="dotcms.dijit.form.ContentSelector" 

structureInode="<%= targetStructure.getInode() %>" containerInode="<%= targetContainerStructure.getInode() %>" relationJsName="<%= relationJsName %>" multiple="true" onContentSelected="callback<%= relationJsName %>" title="<%= UtilMethods.escapeSingleQuotes(LanguageUtil.get(pageContext, "search")) %>" counter_radio="<%= counter %>" searchCounter="<%= searchCounter %>" dialogCounter="<%= dialogCounter %>"></div>

2.dojo.require("dotcms.dijit.form.ContentSelector");


var contanierStructsId = new dotcms.dijit.form.ContentSelector({

onContentSelected:onContentSelection,

containerStructures:containerStructureList

});

contanierStructsId.show();

    调用方式说明:

    1.嵌入html标签

主要属性

id:html唯一标识符

dojoType:绑定声明的dojo对象

jsId:JavaScript中调用的标识符

其他属性:可以用来作为参数传递

2.js调用

直接new dojo对象,通过js进行操作


dotcms总结

标签:tle   dia   hit   参数传递   htm   script   targe   multiple   name   

原文地址:http://blog.51cto.com/xinzhilian/2059320

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!