Extjs textarea内容
Extjs textarea中主要的内容内容和配置项目:
获得表单对象的方法:
var meo = testForm.getForm().findField("memo");
可以获得到表单对象
findField通过查找页面中id可以查找到内容

示例代码:
Ext.onReady(function(){Ext.QuickTips.init();var testForm = new Ext.form.Panel({title:'Ext.form.field.TextArea示例',bodyStyle:'padding:5 5 5 5',frame:true,height:150,width:250,renderTo:'form',items:[{xtype:'textarea',fieldLabel:'提示',id:'memo',labelSeparator:':',labelWidth:60,width:200}],buttons:[{text:'确定',handler:showValue}]});//获得form组件中的内容function showValue(){var meo = testForm.getForm().findField("memo");alert(meo.getValue());}});
显示效果:


浙公网安备 33010602011771号