点击按钮获取到前三个输入框的内容,添加到第四个输入框里面,请问按钮里面的事件应该怎么写?
2条回答 默认 最新
- 斯洛文尼亚旅游 2017-04-21 13:30关注
控价添加id,然后Ext.getCmp('id').getValue()就行了,id参数替换为你控件的id
{ xtype: 'textfield', name: 'PGID',id:'PGID',/////////==>Ext.getCmp('PGID').getValue() fieldLabel: 'BaseURL', allowBlank: false // requires a non-empty value } { xtype: 'combobox', name: 'name',id:'BaseURL',/////////==>Ext.getCmp('BaseURL').getValue() fieldLabel: 'BaseURL', allowBlank: false // requires a non-empty value }
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报