$(function(){
    $('#tt').tree({
        url:'<%=request.getContextPath()%>/treeInit',
        lines:true,
             onLoadSuccess:function(node,data){
             var t = $(this);
            if(data){
             $(data).each(function(index,d){
            if(this.state == 'closed'){
                t.tree('expandAll');
            }
             });
        }
        }
    });
    });
————————————————

原文链接:https://blog.csdn.net/wodatoucai/article/details/30749913

posted on 2021-03-11 10:03  我是一只狗  阅读(86)  评论(0)    收藏  举报