日期:2014-05-17 浏览次数:20762 次
updateCurrentData = function (oldrecords, newrecords) {
for (var i = 0; i < oldrecords.length; i++) {
for (var j = 0; j < newrecords.length; j++) {
if (oldrecords[i].get('id') == newrecords[j][0]) {
oldrecords[i].set('change', newrecords[j][3]);
oldrecords[i].set('%change', newrecords[j][4])
oldrecords[i].commit();
break;
}
}
}
}