如何写这个:
localStorage.setItem("storageArray", array);//save array
chrome.storage.local.set() 用于 Chrome 打包应用程序以及如何编写:
try {
for (var i = 0; i < localStorage.getItem("results").split(",").length; i++) {
array[i] = localStorage.getItem("storageArray").split(",")[i];//get saved array
}
} catch (e) {
return false;
}
使用 chrome.storage.local.get()?