easyUI 从标记创建Tree
@author YHC
一个tree可以从标记创建,easyui tree也可以定义在<ul>元素,无序列表的 <ul>元素提供一个基础的tree结构,每一个<li>元素将产生一个tree节点和子<ul> 元素将产生一个父树节点.
查看 Demo
创建 Tree
[html]
<ul class="easyui-tree">
<li>
<span>Folder</span>
<ul>
<li>
<span>Sub Folder 1</span>
<ul>
<li><span>File 11</span></li>
<li><span>File 12</span></li>
<li><span>File 13</span></li>
</ul>
</li>
<li><span>File 2</span></li>
<li><span>File 3</span></li>
</ul>
</li>
<li><span>File21</span></li>
</ul>
<ul class="easyui-tree">
<li>
<span>Folder</span>
<ul>
<li>
<span>Sub Folder 1</span>
<ul>
<li><span>File 11</span></li>
<li><span>File 12</span></li>
<li><span>File 13</span></li>
</ul>
</li>
<li><span>File 2</span></li>
<li><span>File 3</span></li>
</ul>
</li>
<li><span>File21</span></li>
</ul>
作者:yhc13429826359
补充:web前端 , JavaScript ,