下面是我的代码,我不想使用for循环。但是希望我的价值每次都会增加。但它不应该再次为0,我将其初始化为0.任何建议
_updateAll: function(store,data) {
console.log("data values", data);
that = this;
//if ( var i < 0)
var i = ++i || 0;
//}
//a = 1;
Rally.data.BulkRecordUpdater.updateRecords({
records: data,
propertiesToUpdate: {
Parent: that._newParent.get("_ref")
},
success: function(readOnlyRecords){
//all updates finished, except for given read only records
},
//updateRecords: function(options) {
//console.log("not updated records", options.success.notUpdatedRecords);
//},
scope: that
});
console.log("final features value", that.final_features[0]);
console.log("final features value2", that.final_features);
that._createNewItems(that.final_features[i], data[i]);
//i = ++a;
console.log()
},