如何为jQGrid CellEdit调用getChangedCells方法

我可以使用以下方法获取更改的单元格/行值:

var ret = $(”#grid”).getChangedCells('all'); // Return Rows 

要么

 var ret = $(”#grid”).getChangedCells('dirty'); // Returns the changed cells. 

根据getChangedCells的jqGrid文档 :

根据方法返回已更改单元格的数组(字符串,默认为“all”)。 ‘all’时此方法返回所有已更改的行; 当’dirty’只返回带有id行的已更改单元格时

所以我很困惑为什么$("#grid").getChangedCells('dirty')不能满足你的需求。 也许你可以进一步阐述?