• 转帖01


    {
                region: 'west',
                collapsible:
    true,
                title:
    '导航菜单',
                xtype:
    'treepanel',
               
    200,
                autoScroll:
    true,
                split:
    true,
                loader:
    new Ext.tree.TreeLoader({dataUrl:'tree.aspx'}),
                root: {
                    nodeType:
    'async',
                    text :
    'root',
                    draggable :
    false,
                    id :
    '0'
                },
                rootVisible :
    false,
                listeners: {
                    
    'click':function(node, event) {   
                     event.stopEvent();   
                    
    var n = Ext.getCmp('tab').getComponent(node.id);   
                    
    if (!n&&node.attributes.href!=null) {
                        n
    = Ext.getCmp('tab').add({
                          
    'id':node.id,
                          
    'title':node.text,
                           closable:
    true,
                           autoLoad:{url:node.attributes.href, scripts:
    true}
                        });   
                     }   
                     Ext.getCmp(
    'tab').setActiveTab(n);
                  }   
                }
            }



  • 相关阅读:
    Qt读取JSON和XML数据
    IOS设计模式学习(19)策略
    Android学习笔记(二)之异步加载图片
    ETL-Career RoadMap
    HDU 1501 & POJ 2192 Zipper(dp记忆化搜索)
    CodeForces 242E
    推荐:室内定位API
    基于单片机的电子密码锁的实现
    [nagios监控] NRPE: Unable to read output 的原因及排除
    (ubuntu)在andorid andk工程中使用ccache加速编译速度
  • 原文地址:https://www.cnblogs.com/umlzhang/p/2229656.html
Copyright © 2020-2023  润新知