Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ExtJS 4.1
我有Ext.Form.Panel并且Ext.Button在它里面一定要与formBind: true;. 有没有办法从按钮的处理程序中访问带有按钮绑定的表单getForm()或其他东西?
Ext.Form.Panel
Ext.Button
formBind: true;
getForm()
您可以通过按钮向上查询。
{ xtype:'button', handler: function (button, e) { button.up('form').getForm(); } }