grid

          grid

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

          參考示例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"}
                  ]
              },
              ...
          ]
          
          posted on 2012-11-27 16:00 nikofan 閱讀(1599) 評論(0)  編輯  收藏

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


          網站導航:
           
          主站蜘蛛池模板: 武汉市| 平塘县| 仁化县| 竹北市| 普洱| 石首市| 纳雍县| 青冈县| 剑河县| 和硕县| 诸暨市| 全南县| 纳雍县| 石渠县| 大邑县| 荣成市| 贵州省| 浮梁县| 文水县| 碌曲县| 云浮市| 泰兴市| 报价| 随州市| 新巴尔虎右旗| 都兰县| 梧州市| 唐海县| 黄陵县| 怀远县| 渭源县| 调兵山市| 凯里市| 辛集市| 浙江省| 夏津县| 防城港市| 大荔县| 墨玉县| 于田县| 石柱|