if(this.getStore().getCount()==1)//如果当前store的数据记录数等于1那么就从服务器端加载数据,否则从store中删除选定的Record { var cursor=this.getBottomToolbar().cursor; var start=this.getBottomToolbar().cursor-this.getBottomToolbar().pageSize; var pageSize=this.getBottomToolbar().pageSize; this.getStore().load({params:{start:start,limit:pageSize}}); return; } this.getStore().remove(this.getSelectionModel().getSelected()) ; // var cursor=this.getBottomToolbar().cursor; // this.getStore().load({params:{start:cursor-1,limit:this.getBottomToolbar().pageSize}}); },