现在的位置: 首页 > 综合 > 正文

Extjs form中动态显示图片

2013年08月08日 ⁄ 综合 ⁄ 共 1839字 ⁄ 字号 评论关闭

 

 动态改变IDSBPictures的src值

 

 var _PICTURE_URL = Ext.getCmp("PICTURE_URL").getValue();

 Ext.getCmp("IDSBPictures").getEl().dom.src = _PICTURE_URL;

 

 


 

 

取textfield的值可以用Ext.getCmp(id).getValue();

 


 

 

 

var value="**";

(1) fs.form.findField(id/name).setValue(value);

(2) Ext.get(id/name).setValue(value);

(3) Ext.getCmp(id).setValue(value);

 

获取form里面的field的三种方法

1)Ext.getCmp('id');

2)FormPanel.getForm().findField('id/name');

3)Ext.get('id/name');//前提是FormPanel在界面上显示出 来了

 

 


隐藏

hidden: true, 
hideLabel:true 

 

 

 

 

抱歉!评论已关闭.