1

根据文档, DataChanged 事件被触发whenever the records in the Store have changed in some way - this could include adding or removing records, or updating the data in existing records

我的问题是我们如何知道添加\删除\修改了哪些记录。我们只获取存储引用作为参数。

4

1 回答 1

2

您不知道哪个更改触发了 datachanged 事件,但是,您可以获得更改的记录:

this.getModifiedRecords();
this.getRemovedRecords();
this.getNewRecords();
于 2014-05-23T17:32:02.580 回答