学习ExtJS 访问容器对象

学习ExtJS 访问容器对象

作者: 字体:[增加 减小] 类型:转载 时间:2009-10-07 我要评论

ExtJS 访问容器对象使用说明,需要的朋友可以参考下。
id="iframeu2261530_0" src="http://pos.baidu.com/acom?sz=680x200&rdid=2261530&dc=2&di=u2261530&dri=0&dis=0&dai=2&ps=403x92&coa=at%3D3%26rsi0%3D680%26rsi1%3D200%26pat%3D6%26tn%3DbaiduCustNativeAD%26rss1%3D%2523FFFFFF%26conBW%3D1%26adp%3D1%26ptt%3D0%26titFF%3D%2525E5%2525BE%2525AE%2525E8%2525BD%2525AF%2525E9%25259B%252585%2525E9%2525BB%252591%26titFS%3D14%26rss2%3D%2523000000%26titSU%3D0%26ptbg%3D90%26piw%3D0%26pih%3D0%26ptp%3D0&dcb=BAIDU_UNION_define&dtm=BAIDU_DUP_SETJSONADSLOT&dvi=0.0&dci=-1&dpt=none&tsr=0&tpr=1456190858735&ti=%E5%AD%A6%E4%B9%A0ExtJS%20%E8%AE%BF%E9%97%AE%E5%AE%B9%E5%99%A8%E5%AF%B9%E8%B1%A1_extjs_%E8%84%9A%E6%9C%AC%E4%B9%8B%E5%AE%B6&ari=1&dbv=2&drs=1&pcs=1174x580&pss=1174x409&cfv=0&cpl=4&chi=1&cce=true&cec=GBK&tlm=1454005673&ltu=http%3A%2F%2Fwww.jb51.net%2Farticle%2F20289.htm&ltr=https%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DvYgBFFy8c0VuSrMBT8fqOktyi4H1EvPLzMCuC52-M5YzrnmiyHXKDCrrYv7WvvTQ%26wd%3D%26eqid%3D898ebc1a000c560b0000000556cbb527&ecd=1&psr=1366x768&par=1366x728&pis=-1x-1&ccd=24&cja=false&cmi=6&col=zh-CN&cdo=-1&tcn=1456190859&qn=d76e250675c9116a&tt=1456190858714.74.265.266" width="680" height="200" align="center,center" vspace="0" hspace="0" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" allowtransparency="true" style="display: block; border-width: 0px; border-style: initial; vertical-align: bottom; margin: 0px;">
一、属性 
ownerCt:得到当前对象所在的容器。 
items:集合列表 
二、应用举例 
复制代码代码如下:

Ext.onReady(function(){ 
var _window = new Ext.Window({ 
title:"测试窗体", 
layout:"form", 
width: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() ; 
}) ; 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值