store.load({scope:this,callback:function(records){ Ext.getCmp('button1').setDisabled(records.length>0?true:false); }});
有数据时可以用,那为何还要加按钮设置为disabled?