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.

 

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

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

 

 

 

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

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

 

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

上一篇:Codeforces LATOKEN Round 1 (Div. 1 + Div. 2) E. Lost Array


下一篇:Docker部署MySQL,Redis,RabbitMQ