Easyui tree 展开所有递归实现

来源:互联网 发布:nginx header安全配置 编辑:程序博客网 时间:2024/05/29 08:12
$('#box').tree({    onLoadSuccess : function(node, data) {        if (data) {            $(data).each(function(index, value) {                if (this.state == 'closed') {                    $('#box').tree('expandAll');                }            });        }    }});