easyui Tree树形控件的异步加载

时间:2023-03-08 15:14:26
easyui Tree树形控件的异步加载

Tree控件

    $('#partyOrgTree').tree({
checkbox: false,
url: getDataUrl,
onClick: function (node) {
getDivisionFS(node.id);
},
onBeforeExpand: function (node) {
$('#partyOrgTree').tree('options').url = getChildDataUrl + node.id;
}
});

ComboTree控件

    $('#divisionCombotree').combotree({
url: getDataUrl,
onBeforeExpand: function (node) {
$('#divisionCombotree').combotree('tree').tree('options').url = getChildDataUrl + node.id;
}
});