当前位置:编程学习 > JAVA >>

jQuery MiniUI 开发教程 树形控件 创建树:树形结构(一)

                             
参考示例:Tree 树形控件


                     
创建Tree          

<ul id="tree1" class="mini-tree" url="../data/tree.txt" style="width:300px;padding:5px;"
    showTreeIcon="true" textField="text" idField="id" >       
</ul>
      
           
数据结构:树形         

通过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"}
        ]
    },
    ...
]

补充:web前端 , JavaScript ,
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,