首页 > 代码库 > ExtJS中store.findExact

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 });

 

ExtJS中store.findExact