📜  用于扩展的 chrome 存储 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:08.183000             🧑  作者: Mango

代码示例1
chrome.storage.sync.set({key: value}, function() {  console.log('Value is set to ' + value);});chrome.storage.sync.get(['key'], function(result) {  console.log('Value currently is ' + result.key);});