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 閱讀(1591) 評論(0)  編輯  收藏

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


          網站導航:
           
          主站蜘蛛池模板: 盘锦市| 苗栗县| 琼中| 徐州市| 安福县| 东山县| 临朐县| 武川县| 湟源县| 通榆县| 宁波市| 益阳市| 正阳县| 岢岚县| 桃源县| 苍山县| 栾川县| 都安| 仲巴县| 新密市| 德钦县| 阿坝县| 宁陵县| 广昌县| 南昌县| 奎屯市| 广元市| 古蔺县| 深水埗区| 耿马| 广州市| 海原县| 山东省| 武宣县| 衡水市| 左权县| 阳朔县| 三穗县| 密云县| 玉屏| 台东县|