树状组织结构-Tree

前端:
 $(function () {
            var nodeAll = "000";
            $('#departmentTree').tree({ url: 'getDepartment.ashx',
                onClick: function (node) {
                    //$(this).tree('toggle', node.target);
                    $("#hidSelectednodeId").val(node.id);
                    $("#btnQuery").click();
                },
                onBeforeExpand: function (node) {
                    $(this).tree('options').url = 'getDepartment.ashx?depid=' + node.id;
                    return true;
                }
            });
        });

 

<ul id="departmentTree" class="ztree"> </ul>

 

posted @ 2015-07-07 11:48  女码农的码农路  阅读(405)  评论(0编辑  收藏  举报