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