jsTree默认展开所有的节点

原创
2017/02/21 10:06
阅读数 1W

由于业务需要,需要默认展开所有的子节点,于是在王章各种搜索,终于找到了;

jQuery(function () {
    jQuery('#jstree').jstree({
        "core" : {
            "check_callback" : true,
        },
        "plugins" : [ 'contextmenu', "dnd", 'sort', "state" ],
        contextmenu : { items: context_menu }
    });
    
    jQuery('#jstree').jstree().open_all();
});

 

展开阅读全文
加载中

作者的其它热门文章

打赏
0
0 收藏
分享
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部