1: 弹出window 居中
Ext.EventManager.onWindowResize(function(){ win.center(); });
2:表单空格过滤
Ext.apply(Ext.form.TextField.prototype, { validator : function(text) { if (this.allowBlank == false && Ext.util.Format.trim(text).length == 0) return false; else return true; } }); Ext.apply(Ext.form.ComboBox.prototype, { validator : function(text) { if (this.allowBlank == false && Ext.util.Format.trim(text).length == 0) return false; else return true; } });