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进行操作
转载于:https://blog.51cto.com/xinzhilian/2059320