当store插入或删除record时,要改变Ext.grid.RowNumberer。假设所在grid是testGrid,则在插入或删除后加这句 testGrid.getView().refresh();