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);
                  }   
                }
            }



  • 相关阅读:
    动态内存
    数组
    localstorage基础
    xampp 虚拟机配置
    浏览器兼容性问题积累
    做动画的一大接口 requestAnimationFrame
    canvas 基础
    svn--confilct了怎么办?
    【javascript设计模式】构造器模式、模块模式、单例模式
    关于优雅降级和渐进增强
  • 原文地址:https://www.cnblogs.com/umlzhang/p/2229656.html
Copyright © 2011-2022 走看看