Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
116 views
in Technique[技术] by (71.8m points)

javascript - Save data table like for chrome extension

first timer here,

I am working on a chrome extension that has to use quite a lot of data. At the moment I am getting the data from a wiki each time the user starts a new session so they always use the latest data. I convert this data into an array of objects and save them to sessionStorage. Now this works fine but I am completely relying on the wiki at the moment. I would like to have fallback data that comes with the extension natively. How do I go about this? I imagine to have a database table like file that I can put all the data into and if needed it is read by the extension.

Basically since I would need it for other uses as well a database which I could query locally from within the extension would be really neat.

I know about chrome's storage api/localStorage but since these are only key:value storages it only works with some extra effort and it feels like it isn't exactly made for what I am trying to do.

question from:https://stackoverflow.com/questions/65838797/save-data-table-like-for-chrome-extension

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...