首页 > 其他 > 详细

树状组织结构-Tree

时间:2015-07-07 12:37:32      阅读:235      评论:0      收藏:0      [点我收藏+]
前端:
 $(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>

 

树状组织结构-Tree

原文:http://www.cnblogs.com/chenxiulou/p/4626531.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!