▽1
●
a-kuma3 ●100ポイント ベストアンサー |
The callback parameter should be a function that looks like this:
function(object items) {...};chrome.storage - Google Chrome
object items Object with items in their key-value mappings.
とありますから、こんな感じになるんでしょうね。
for(var i=0; i<hoges.length; i++){ hoge = hoges[i]; chrome.storage.local.get(hoge, function (value) { if (value[hoge]) { console.log(value[hoge]); } }); }
hoges
は、キーの配列ってことで良いんですよね?