由于业务需要,需要默认展开所有的子节点,于是在王章各种搜索,终于找到了;
jQuery(function () {
jQuery('#jstree').jstree({
"core" : {
"check_callback" : true,
},
"plugins" : [ 'contextmenu', "dnd", 'sort', "state" ],
contextmenu : { items: context_menu }
});
jQuery('#jstree').jstree().open_all();
});