chrome扩展程序的"chrome.storage.local"数据保存在哪里? [英] Where is chrome extension's 'chrome.storage.local' data saved?
问题描述
我可以在~/.config/google-chrome/Default/Local Storage
目录中找到以前的localStorage api数据.我看到这些是sqlite文件,可以使用sqlite3浏览.
I can find the previous localStorage api data in ~/.config/google-chrome/Default/Local Storage
directory. I see that these are sqlite files which I can browse with sqlite3.
但是,我要从localStorage api迁移到chrome.storage
api,并使用chrome.storage.local
方法保存信息.
However, I'm moving from localStorage api to chrome.storage
api and saving the information with chrome.storage.local
method.
现在,这些文件如何以及在哪里保存在我的文件系统中?在他们的文档中,我似乎找不到任何与此有关的信息.任何帮助将不胜感激.
Now, how and where are these files are bing saved in my file system? I can't seem to find any information regarding this in their doc. Any help would be highly appreciated.
推荐答案
对于Windows,您可以在这些位置找到与扩展名[extension_id]相关的其他数据
For Windows, you can find different data related to your extension [extension_id] at these places
C:\ Users \ [用户名] \ AppData \ Local \ Google \ Chrome \ User Data \ Default \ Local Extension Settings \ [extension_id]
C:\Users\[user_name]\AppData\Local\Google\Chrome\User Data\Default\Local Extension Settings\[extension_id]
C:\ Users \ [用户名] \ AppData \ Local \ Google \ Chrome \ User Data \ Default \ Sync扩展设置\ [extension_id]
C:\Users\[user_name]\AppData\Local\Google\Chrome\User Data\Default\Sync Extension Settings\[extension_id]
C:\ Users \ [用户名] \ AppData \ Local \ Google \ Chrome \ User Data \ Default \ IndexedDB \ chrome-extension_ [extension_id]
C:\Users\[user_name]\AppData\Local\Google\Chrome\User Data\Default\IndexedDB\chrome-extension_[extension_id]
要检出chrome.storage数据
want to checkout chrome.storage data
- 打开指向您的背景页面的开发人员工具
-
类型命令
- open developer tools pointing your background page
type command
chrome.storage.sync.get(空,函数(数据){console.info(数据)});
或
chrome.storage.local.get(空,函数(数据){console.info(数据)});
这篇关于chrome扩展程序的"chrome.storage.local"数据保存在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!