无法在jstree中打开节点

时间:2016-07-27 16:11:56

标签: javascript jstree

我在使用jstree的litle应用程序上工作。我对programmaticall打开节点有一些问题。

我的树有5升筑巢。

我有节点ID,我需要打开它。它属于最后一层树。

' open_node'功能与第一层树一起工作,但不与其他人合作。我尝试使用' load_all'功能,但它没有帮助。我的代码出了什么问题?

$("#treeHD_classification").jstree("load_all")
$('#treeHD_classification').jstree('open_node', $("#"+selected))

2尝试打开节点

$('#treeHD_classification').on('ready.jstree', (e, data) ->  
  data.instance._open_to('j2_2_anchor')  
  $('#treeHD_classification').jstree 'open_node', 'j2_2_anchor'  

_open_to - 没有做任何事情 open_node - 仅打开第一个lvl节点

感谢您的回复。

0 个答案:

没有答案
相关问题