Ich versuche, einen Wert zu löschen, der in JSONStore gespeichert ist. Ich bin mit diesem Fehler konfrontiert:Löschen funktioniert nicht in JSONStore in MobileFirst Platform
03-26 18:52:10.391: I/chromium(1890): [INFO:CONSOLE(0)] "document.clear() is deprecated. This method doesn't do anything.", source: (0)
und der Wert wird nicht gelöscht. Hier
ist der Code:
function clear() {
var collectionName = 'people';
//Build the query object
var query = {
_id: 3
};
var options = {
exact: true
};
try {
WL.JSONStore.get(collectionName).remove(query, options)
.then(function(res) {
alert("Success" + res);
})
.fail(function(errorObject) {
alert(errorObject.msg);
});
} catch (e) {
_logError("");
}
}
ich wirklich die Hilfe schätzen würde. Vielen Dank.
was Sie moiblefirst Version? –
Ich benutze Version 7.1. –
Bitte geben Sie Ihre Version auf diese Weise an (z. B. MobileFirst 7.1.0.00-20151227-1725) –