ExtJS中store.findExact

 1  var ds = myGrid.apf_ds;
 2  var store = myGrid.getStore();
 3 
 4 forEach(data, function (item) {
 5     if (store.findExact("code", item["code"]) < 0) {
 6         
 7             var record = ds.addRecord();
 8             record.set("code", item.code);
 9             ...
10         }
11     }
12 });
原文地址:https://www.cnblogs.com/wuln/p/6726997.html