Javascript 将chrome应用程序中的数据保存到本地存储之外

Javascript 将chrome应用程序中的数据保存到本地存储之外,javascript,google-chrome,google-chrome-extension,Javascript,Google Chrome,Google Chrome Extension,如何从chrome应用程序将数据保存到数据库。我已经尝试了本地存储,这是chrome应用程序的内置API,但它不适合我,因为我必须用chrome应用程序管理大量数据。基本上,我需要为我的离线chrome应用程序存储数据 我尝试了本地存储,并尝试在目录中创建日志,但它对我不起作用 chrome.storage.local.set({dataList:dataList},函数(){ //可以使用字符串而不是对象 //如果不想定义默认值 chrome.storage.local.get('dataL

如何从chrome应用程序将数据保存到数据库。我已经尝试了本地存储,这是chrome应用程序的内置API,但它不适合我,因为我必须用chrome应用程序管理大量数据。基本上,我需要为我的离线chrome应用程序存储数据

我尝试了本地存储,并尝试在目录中创建日志,但它对我不起作用

chrome.storage.local.set({dataList:dataList},函数(){
//可以使用字符串而不是对象
//如果不想定义默认值
chrome.storage.local.get('dataList',异步(结果)=>{
console.log(result.dataList)
让webHook=wait$.post(“http://localhost:3000“,{},dimensionObj);
log(webHook);});
});请参考以下内容: