<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    隨筆 - 147  文章 - 71  trackbacks - 0
    <2009年4月>
    2930311234
    567891011
    12131415161718
    19202122232425
    262728293012
    3456789

    常用鏈接

    留言簿(1)

    隨筆分類(146)

    隨筆檔案(147)

    文章分類(28)

    文章檔案(28)

    喜歡的Blog

    搜索

    •  

    最新評論

    閱讀排行榜

    評論排行榜

    Tree的例子

     1Ext.onReady(function() {
     2            var json = [{
     3                        'text' : 'A',
     4                        'id' : 'a',
     5                        'leaf' : false,
     6                        'children' : [{
     7                                    'text' : 'A1',
     8                                    'id' : 'a1',
     9                                    'leaf' : false,
    10                                    'children' : [{
    11                                                'text' : 'A11',
    12                                                'id' : 'a11',
    13                                                'leaf' : true
    14                                            }
    {
    15                                                'text' : 'A12',
    16                                                'id' : 'a12',
    17                                                'leaf' : true
    18                                            }
    {
    19                                                'text' : 'A13',
    20                                                'id' : 'a13',
    21                                                'leaf' : true
    22                                            }
    {
    23                                                'text' : 'A14',
    24                                                'id' : 'a14',
    25                                                'leaf' : true
    26                                            }
    ]
    27                                }
    {
    28                                    'text' : 'A2',
    29                                    'id' : 'a2',
    30                                    'leaf' : true
    31                                }
    ]
    32                    }
    {
    33                        'text' : 'B1',
    34                        'id' : 'b1',
    35                        'leaf' : false,
    36                        'children' : [{
    37                                    'text' : 'B11',
    38                                    'id' : 'b11',
    39                                    'leaf' : true
    40                                }
    {
    41                                    'text' : 'B11',
    42                                    'id' : 'b12',
    43                                    'leaf' : false,
    44                                    'children' : [{
    45                                                'text' : 'B121',
    46                                                'id' : 'b121',
    47                                                'leaf' : true
    48                                            }
    ]
    49                                }
    ]
    50                    }
    ];
    51            var tree = new Ext.tree.TreePanel({
    52                        animate : true,
    53                        enableDD : false,
    54                        loader : new Ext.tree.TreeLoader(),
    55                        lines : true,
    56                        selModel : new Ext.tree.MultiSelectionModel(),
    57                        containerScroll : false
    58                    }
    );
    59
    60            var root = new Ext.tree.AsyncTreeNode({
    61                        text : 'Autos',
    62                        draggable : false,
    63                        id : 'source',
    64                        children : json
    65                    }
    );
    66
    67            tree.setRootNode(root);
    68
    69            tree.on('click', function(node) {
    70                        alert(node.id + "" + node.text);
    71                        if (node.leaf == true{
    72                            addSelected(node.id, node.text);
    73                        }

    74                    }
    );
    75            tree.render(document.body);
    76            root.expand();
    77
    78        }
    );
    調用:
    <div id="tree"></div>
    posted on 2009-04-01 20:21 飛翔天使 閱讀(1073) 評論(1)  編輯  收藏 所屬分類: ajax

    FeedBack:
    # re: Extjs使用教程(整理中)[未登錄] 2012-10-25 14:52 a
    defe fer  回復  更多評論
      
    主站蜘蛛池模板: 成人免费a级毛片无码网站入口| 日韩午夜理论免费TV影院| 男女免费观看在线爽爽爽视频| 亚洲第一中文字幕| 99精品免费观看| 亚洲日本乱码一区二区在线二产线| 中文字幕亚洲免费无线观看日本| 亚洲一区二区电影| 国产卡一卡二卡三免费入口| 中文字幕 亚洲 有码 在线| 好爽又高潮了毛片免费下载| 亚洲国产成人无码AV在线影院 | 一级毛片成人免费看免费不卡| 亚洲AV永久精品爱情岛论坛| 亚洲视频在线观看免费| 色偷偷女男人的天堂亚洲网 | 永久免费AV无码网站国产| 亚洲va久久久噜噜噜久久狠狠| 免费观看久久精彩视频| 亚洲成AV人综合在线观看| 好男人www免费高清视频在线 | 国产精品免费观看视频| 亚洲国产精品无码久久久蜜芽| 免费无码VA一区二区三区| 亚洲成a人片在线观看精品| 免费v片视频在线观看视频| 国产真人无码作爱免费视频| 亚洲视频在线免费观看| 巨胸喷奶水视频www网免费| 日本高清不卡中文字幕免费| 亚洲va国产va天堂va久久| 最新中文字幕免费视频| 国产精品永久免费视频| 亚洲国产综合自在线另类| 又粗又大又硬又爽的免费视频| 国产免费一区二区三区不卡| 又硬又粗又长又爽免费看 | 亚洲精品乱码久久久久久中文字幕 | a级在线观看免费| 中国china体内裑精亚洲日本| 国产91久久久久久久免费|