使用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.

 

 

 

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

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

 

相关文章:

  • 2021-12-12
  • 2022-02-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-03
  • 2021-10-15
猜你喜欢
  • 2021-10-17
  • 2021-04-14
  • 2022-12-23
  • 2021-05-21
  • 2022-12-23
  • 2022-12-23
  • 2021-11-25
相关资源
相似解决方案