📜  chrome 存储同步示例 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:28.860000             🧑  作者: 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);});