how do I get online files through url and store them in indexedDB? I think the first step should be to download the file, convert it to binary, and then store it. But how to transform it?
how do I get online files through url and store them in indexedDB? I think the first step should be to download the file, convert it to binary, and then store it. But how to transform it?
indexedDB can save objects directly. Without conversion, you can get your files directly, and then insert them into them
.recently, I intend to cache chat data locally. I encountered some problems in the process of using indexedDB,. The code is as follows let db; let chatDB = { indexedDB: window.indexedDB || window.webkitIndexedDB || window.mozIndexedDB || window.msIn...
for example, createObjectStore reported an error when upgrading the version number, because the table has already been created, and the index is also created when the table is created how can I add a new index to the old table when the database version ...
problem description I need to dynamically add the "table " (store), of indexddb to the project instead of initializing all the tables to be used at once. However, there is a problem when triggering the version update event, and the crux of the prob...
Business scenario: AJAX returns the data res after sending the request, and the returned data is dynamic (maybe a lot, maybe very little). Maybe some need to be updated and some need to be added) I want to implement a judgment to determine whether the...