1. 移除某一行

Ext.getCmp(id).getStore().removeAt(rowIndex);

2. 移除某个表格的所有行

Ext.getCmp(id).getStore().removeAll();

3. 销毁grid

Ext.getCmp(id).destroy();

panel.destory()执行之后,相应的网格会在页面中消失,Ext.getCmp(id) 将会是 undefined。

posted on 2020-03-25 15:20  欲穷  阅读(322)  评论(0编辑  收藏  举报