Failed to execute 'index' on 'IDBObjectStore': The specified index was not found.


使用indexedDB时候报错:Failed to execute 'index' on 'IDBObjectStore': The specified index was not found.

 

解决办法:把数据库重新删了,然后再新建就可以。

 

 

 

原因是之前没有建索引,现在新建索引以后,再原来的库上面新建索引会报错!

总结:如果有不明情况报错,需要升级版本号,或者删除重新建立就可以

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM