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() ;            
        }) ;
  • 相关阅读:
    网络时间校对
    OleVariant的本质
    GIT生成SSHKEY公钥放到服务器免密登录
    git 清除所有untracked file
    Linux命令 cat命令
    Linux如何通过命令查看日志文件的某几行(中间几行或最后几行)
    Git提交(PUSH)时记住密码 不用每次都输入密码
    arcgis10 arcmap10插件监控打开和保存文档
    arcmap10插件必看网页
    arcgis分解每一个部分为一个对象
  • 原文地址:https://www.cnblogs.com/easypass/p/1578355.html
Copyright © 2011-2022 走看看