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 });
时间: 2024-12-08 05:17:14