In fact, the nature of the tree is a binary tree, in doing the project, has been found to be loaded nodes are not displayed.
javascriptonLoadSuccess: function (node, data) {
if (data.length > 0) {
//找到第一个元素
var n = $('#tree').tree('find', data[0].children[0].id);
//调用选中事件
$('#tree').tree('select', n.target);
}
}
Finally we found the child node js must use children represent.