EasyUI Combotree 实现异步加载树节点
程序员文章站
2022-06-08 09:16:46
...
<tr>
<th>父导航名称</th>
<td>
<input id="R_SID" name="R_SID" value="${(record.R_SID!)!}" data-options="required:true">
</td>
</tr>
通过onBeforeExpand实现异步加载。
$('#R_SID').combotree({
url: "${WEBPATH!}/bo/eSYS_NAV/tree.html",
panelHeight: '180px',
onBeforeExpand: function (node) {
$('#R_SID').combotree("tree").tree("options").url = "${WEBPATH!}/bo/eSYS_NAV/tree.html?R_SID=" + node.id;
}
});
转载于:https://my.oschina.net/xiuj/blog/371551
上一篇: 动态创建树节点tree
下一篇: 鳌拜的功劳与权力有多大?康熙为何忌惮他?