grid

          grid

            BlogJava :: 首頁(yè) :: 聯(lián)系 :: 聚合  :: 管理
            78 Posts :: 0 Stories :: 62 Comments :: 0 Trackbacks
          創(chuàng)建樹(shù):列表結(jié)構(gòu)
                          
                                         

          參考示例: 列表數(shù)據(jù)生成Tree


                                 

          創(chuàng)建Tree           

          <ul id="tree1" class="mini-tree" url="../data/listTree.txt" style="width:200px;padding:5px;" 
              showTreeIcon="true" textField="text" idField="id" parentField="pid" resultAsTree="false"  
              >
          </ul>          

          注意:idField、parentField、resultAsTree屬性。


                 
                     

          數(shù)據(jù)結(jié)構(gòu):列表          

          通過(guò)url返回的數(shù)據(jù)結(jié)構(gòu)如下:

          [
              {id: "base", text: "Base", expanded: false},    
              {id: "ajax", text: "Ajax", pid: "base"},
              {id: "json", text: "JSON", pid: "base"},
              ......
          ]
          
          其中,id和pid對(duì)應(yīng)父子關(guān)系。
          posted on 2012-11-28 16:00 nikofan 閱讀(1351) 評(píng)論(0)  編輯  收藏

          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 南康市| 台中市| 广元市| 大余县| 板桥市| 浏阳市| 密山市| 囊谦县| 蒙阴县| 遵义县| 桐城市| 普格县| 石嘴山市| 海城市| 都昌县| 应城市| 沂水县| 黔东| 青铜峡市| 凤台县| 阿克苏市| 和田县| 宁乡县| 辽阳市| 漳浦县| 四子王旗| 博客| 百色市| 广德县| 麻阳| 西峡县| 台安县| 长丰县| 甘肃省| 兰考县| 民乐县| 逊克县| 当阳市| 金阳县| 科尔| 旌德县|