[b]创建树:树形结构[/b]
[img]http://www.miniui.com/docs/api/images/tree.gif[/img]
参考示例:[url=http://www.miniui.com/demo/tree/tree.html]Tree 树形控件[/url]
[b]创建Tree[/b]
<ul id="tree1" class="mini-tree" url="../data/tree.txt" style="width:300px;padding:5px;"
showTreeIcon="true" textField="text" idField="id" >
</ul>
[b]数据结构:树形[/b]
通过url返回的数据结构如下:
[
{id: "base", text: "Base", expanded: false,
children: [
{id: "ajax", text: "Ajax"},
{id: "json", text: "JSON"},
{id: "date", text: "Date"},
{id: "control", text: "Control"},
{id: "messagebox", text: "MessageBox"},
{id: "window", text: "Window"}
]
},
...
]
[img]http://www.miniui.com/docs/api/images/tree.gif[/img]
参考示例:[url=http://www.miniui.com/demo/tree/tree.html]Tree 树形控件[/url]
[b]创建Tree[/b]
<ul id="tree1" class="mini-tree" url="../data/tree.txt" style="width:300px;padding:5px;"
showTreeIcon="true" textField="text" idField="id" >
</ul>
[b]数据结构:树形[/b]
通过url返回的数据结构如下:
[
{id: "base", text: "Base", expanded: false,
children: [
{id: "ajax", text: "Ajax"},
{id: "json", text: "JSON"},
{id: "date", text: "Date"},
{id: "control", text: "Control"},
{id: "messagebox", text: "MessageBox"},
{id: "window", text: "Window"}
]
},
...
]
本文介绍如何创建树形结构并使用树形控件进行数据管理,通过URL获取的数据结构展示,帮助开发者理解树形数据组织方式及其应用。
9035

被折叠的 条评论
为什么被折叠?



