zoukankan      html  css  js  c++  java
  • 转帖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);
                  }   
                }
            }



  • 相关阅读:
    Codeforces Round #609 (Div. 2)
    Educational Codeforces Round 78 (Rated for Div. 2)
    Codeforces
    crontab
    C6 C7的开机启动流程
    平均负载压力测试
    ps 和 top
    if判断
    使用3种协议搭建本地yum仓库
    linux rpm包
  • 原文地址:https://www.cnblogs.com/umlzhang/p/2229656.html
Copyright © 2011-2022 走看看