현재 선택된 노드의 레벨을 얻으려면 어떻게해야합니까? 나는. 부모의 수.jstree 선택된 노드의 레벨을 얻습니다.
는 I과 같은 노드의 선택을 실행하는 부 가지고
.bind("select_node.jstree", function (event, data) {
var nodeInfo = $("#" + data.rslt.obj.attr("id"));
console.log(data.rslt.obj.attr("id")); // the id of the node
console.log(nodeInfo.children("a").text()); // the name of the node
// the level of the node???
});
작품 설명, 감사합니다. – Angus