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

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 ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,