db.fieldsets.put()抛出错误可能问题出在索引或主键中,但代码可以在其他设备上运行,所以我猜问题不在代码中 dexie_db.js: import Dexie from 'dexie';const db = new Dexie('fieldsets'); fieldsets:'++id, user',
}); 导出默认数据库/dexie_D
试图找出如何使用Dexie.JS。发现了一堆样本。看起来不太复杂。有一个特别有趣的例子,用于在IndexedDB上使用Dexie开发。但是,当我运行上面的“转储实用程序”时,它没有看到IndexedDB数据库,告诉我:There are databases at the current origin.。在developer Application选项卡中,在Storage下面,我看到了我的IndexedDB数据库。
这是某种权限问题吗?任何选项卡/用户可以访问任何indexedDB数据库吗?
我有一个可以正常工作的Vue.js和一个Dexie IndexedDB数据库,工作起来很流畅,就像这样:在Vue中,我需要访问数据库的任何地方,我都会导入模块:我可以直接访问Dexie方法,例如:模块MyIdb.js是这样设置的(为了简化,我删除了一些代码和表):
importDexie from 'dexie</
目前,我正在使用下面的代码,我想在用户提交表单时使用dexie.js存储数据,但我不知道如何在使用Vue时检索数据。= require('dexie');
// Force debug mode to get async stacks from exceptions.Dexie.debug = true; // In production, set to false to increase performance a little.let db = new Dexie</e