【发布时间】:2021-03-25 02:57:27
【问题描述】:
是否可以在不知道架构的情况下将整个对象写入 Dexie? 我只想这样做:
var db = new Dexie(gameDataLocalStorageName);
db.version(1).stores({
myData: "gameData"
});
db.myData.put(gameData);
console.log(db.myData.get('gameData'));
但我收到以下错误:
Unhandled rejection: DataError: Failed to execute 'put' on 'IDBObjectStore': Evaluating the object store's key path did not yield a value.
DataError: Failed to execute 'put' on 'IDBObjectStore': Evaluating the object store's key path did not yield a value.
【问题讨论】:
标签: dexie