SSM + easyUI project

  1. When loaded on easyUI tree menu

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.

Published 25 original articles · won praise 0 · Views 297

Guess you like

Origin blog.csdn.net/qq_42219004/article/details/105034048