有三种方法能实现form表单的重置:
 
var fs=new Ext.form.FormPanel({...}); 

//(1)
fs.form.reset();//重置form 
//
(2)
fs.getForm().getEl().dom.reset();//重置form 
//
(3)
Ext.getCmp('fs').form.reset(); 

 


posted on 2011-01-15 13:21  肉肉哥哥  阅读(346)  评论(0编辑  收藏  举报