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.
我有一些 Ext.FormPanel,我只想在用户更改表单内的值时启用“保存”按钮。我如何发现用户更改了某些字段?
我试过 form.on("change"), SelectionMode 但没有任何成功。
只需检查
var myFormPanel = // get a reference to the form panel if (myFormPanel.getForm().isDirty()) { // submit your form }
在click“保存”按钮上的 -handler 中。
click