这是jstree代码:
$("#tree").jstree({
"json_data": {
"data": treedata,
"progressive_render": true
},
"plugins": ["themes", "json_data"]
});
其中treedata
包含一些 Json。不幸的是,没有任何渲染。我发现的示例是用于 ajax 加载 Json,但我现在用内联 Json 来证明这个概念。它是有效的 Json,但 jstree 根本不渲染任何东西。
谁能告诉我做错了什么?
“树”是有效的<div>