Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/87.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Cordova iOS应用程序在应用程序关闭后擦除indexedDB数据_Cordova_Indexeddb - Fatal编程技术网

Cordova iOS应用程序在应用程序关闭后擦除indexedDB数据

Cordova iOS应用程序在应用程序关闭后擦除indexedDB数据,cordova,indexeddb,Cordova,Indexeddb,我的Cordova iOS在Cordova iOS 5.0.0上运行正常,但在Cordova iOS 6.0.0上升级后,在应用程序关闭后,所有indexedDB都会被擦除 如何解决这个问题 以下是我连接数据库的方式: var dbQuery = indexedDB.open("my_db",1); dbQuery.onsuccess = function(){ dbQuery.result; }; dbQuery.onupgradeneeded = functi

我的Cordova iOS在Cordova iOS 5.0.0上运行正常,但在Cordova iOS 6.0.0上升级后,在应用程序关闭后,所有indexedDB都会被擦除

如何解决这个问题

以下是我连接数据库的方式:

var dbQuery = indexedDB.open("my_db",1);

dbQuery.onsuccess = function(){
    dbQuery.result;
};

dbQuery.onupgradeneeded = function(evt){

};

谢谢。

截至,iOS不支持indexedDB