grid

          grid

            BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
            78 Posts :: 0 Stories :: 62 Comments :: 0 Trackbacks
          創建樹:列表結構
                          
                                         

          參考示例: 列表數據生成Tree


                                 

          創建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屬性。


                 
                     

          數據結構:列表          

          通過url返回的數據結構如下:

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

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 和龙市| 乌兰浩特市| 措美县| 高淳县| 永平县| 东安县| 濮阳县| 遵义县| 鄢陵县| 新乐市| 盖州市| 囊谦县| 漾濞| 项城市| 海兴县| 阳江市| 临城县| 神农架林区| 灵璧县| 乌恰县| 苏尼特左旗| 宜黄县| 宜都市| 延川县| 金塔县| 历史| 大庆市| 濉溪县| 湘潭市| 东安县| 石阡县| 石城县| 东明县| 湖州市| 吉林市| 昂仁县| 文登市| 富锦市| 遵化市| 沂南县| 霍州市|