license: > Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Eine Übersicht über Storage-Optionen für Cordova.
Mehrere Speicher-APIs sind für Cordova-Anwendungen verfügbar. Finden Sie unter html5rocks. eine vollständigere Übersicht und Beispiele.
Auch bekannt als web-Speicher, einfache Lagerung, oder durch seine Alternative Session-Speicherung -Schnittstelle, diese API bietet synchrone Schlüssel/Wert-Paar Speicher, und steht im zugrunde liegenden WebView-Implementierungen. Finden Sie in der W3C-Spezifikation für Details.
Diese API ist verfügbar in den zugrunde liegenden WebView. Der Web SQL Database-Spezifikation bietet Zugriff auf weitere vollwertige Datenbanktabellen über SQL-Abfragen.
Die folgenden Plattformen unterstützen WebSQL:
Diese API ist verfügbar in den zugrunde liegenden WebView. Indiziert DB bietet mehr Funktionen als LocalStorage aber weniger als WebSQL.
Die folgenden Plattformen unterstützen IndexedDB:
Neben der Lagerung APIs oben aufgeführten, können Sie die Datei API zum Zwischenspeichern von Daten auf dem lokalen Dateisystem. Andere Cordova Plugins bieten ähnliche Speicheroptionen.