我的应用程序在Web存储中使用了indexedDb。
我想从下面的代码中获取存储库。
var store = myapp.indexedDB.db.transaction(['tree_nodes'],'readwrite').objectStore('tree_nodes');
出现了错误,我已经熟知打开indexeddb数据库和版本更改的方法。
错误信息是Uncaught TypeError: Cannot call method 'transaction' of null
我试过在断点处进行调试,那时它可以正常工作且没有出现错误。
请问我该如何获得这个存储库?请帮帮我。
提前感谢您的帮助!