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;
        }
    });
原文地址:https://www.cnblogs.com/lgxtry/p/6829297.html