几个extjs 常用操作
1: 弹出window 居中
Ext.apply(Ext.form.TextField.prototype, { validator : function(text) {if (this.allowBlank == false&& Ext.util.Format.trim(text).length == 0)return false;elsereturn true;}});Ext.apply(Ext.form.ComboBox.prototype, {validator : function(text) {if (this.allowBlank == false&& Ext.util.Format.trim(text).length == 0)return false;elsereturn true;}});