【发布时间】:2014-10-26 10:13:00
【问题描述】:
我需要替换 IBM Worklight 的 JSONStore 中的多个值。 以这种方式只保存第一个值。为什么?
.then(function() {
for (var index = 0; index < elencoSpese.length; index++) {
var spesa = elencoSpese[index];
var spesaReplace = {_id: spesa.id, json: spesa};
spesa.id_nota_spesa = idNotaSpesa;
spesa.checked = true;
WL.JSONStore.get(COLLECTION_NAME_SPESE).replace(spesaReplace);
}
})
【问题讨论】:
标签: save ibm-mobilefirst savechanges jsonstore multivalue