临时处理了
var openRequest = indexedDB.open("webReportDesignerDB", 1);
openRequest.onsuccess = function (e) {
console.log("Success!");
var db = e.target.result;
if (db.objectStoreNames.contains("reportsStore")) {
var t = db.transaction(["reportsStore"], "readwrite");
var request = t.objectStore("reportsStore").delete("report");
}
}
openRequest.onerror = function (e) {
console.log("Error");
console.dir(e);
} |