zoukankan      html  css  js  c++  java
  • 学习ExtJS(六) 访问容器对象

    一、属性
    ownerCt:得到当前对象所在的容器。
    items:集合列表
    二、应用举例
    Ext.onReady(function(){
            var _window 
    = new Ext.Window({
                                title:
    "测试窗体",
                                layout:
    "form",
                                
    300,
                                plain:
    true,
                                items:{
                                    id:
    "name",
                                    xtype:
    "textfield",
                                    fieldLabel:
    "姓名"
                                },
                                
                                buttons:[{
                                    text:
    "确定",
                                    handler:function(){
                                        alert(
    this.ownerCt.ownerCt.items.first().getValue()) ;
                                        alert(
    this.ownerCt.ownerCt.items.itemAt(0).getValue()) ;
                                        alert(Ext.getCmp(
    "name").getValue()) ;
                                    
                                    }
                                }]
                          }) ;
            _window.show() ;            
        }) ;
  • 相关阅读:
    正则表达式
    JavaScript基础
    Servlet监听器
    Java EKT关键技术强化 tomcat中文乱码问题
    spring和springmvc 整合步骤
    [ERROR] [ERROR] Some problems were encountered while processing the POMs: [ERROR] 'packaging' with value 'war' is invalid. Aggregator projects require 'pom' as packaging. @ line 9, column 16
    Pagehelper的 使用
    异步 json的使用
    分页技术 PageHelper
    Exception encountered during context initialization
  • 原文地址:https://www.cnblogs.com/easypass/p/1578355.html
Copyright © 2011-2022 走看看