IndexedDB.open一直报错,请问是什么原因
1个回答
展开全部
下面是我的代码:请各位大侠帮忙看看是什么原因造成的?还是电脑系统需要设定什么?
var indexedDB = window.mozIndexedDB || window.indexedDB || window.webkitIndexedDB || windo w.msIndexedDB;
const DB_NAME = 'supernote-db';
const DB_VERSION = 1;
var request = indexedDB.open(DB_NAME, DB_VERSION);
request.onsuccess = function(event) {
alert("database open success:" + request.result);
//db = request.result;
var indexedDB = window.mozIndexedDB || window.indexedDB || window.webkitIndexedDB || windo w.msIndexedDB;
const DB_NAME = 'supernote-db';
const DB_VERSION = 1;
var request = indexedDB.open(DB_NAME, DB_VERSION);
request.onsuccess = function(event) {
alert("database open success:" + request.result);
//db = request.result;
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询