更新时间:2023-02-05 20:39:16
如果将特定节点的 children
属性设置为 true
然后节点呈现为已关闭,当节点展开时, core.data.data
和 core.data.url
函数被调用(假设你使用的是AJAX)。
If you set the children
property of a particular node to true
then the node is rendered as closed, and when the node is expanded then core.data.data
and core.data.url
functions are called (this is assuming you are using AJAX).
查看使用AJAX的文档 http://www.jstree.com/docs/json/
See the docs for using AJAX http://www.jstree.com/docs/json/
或者你可以为 core.data
提供一个函数来加载树和任何节点。
Alternatively you can supply a function for core.data
which is what is called to load the tree, and any nodes.