質問

i want to store my data in firefox addon localstorage is not working in firefox addon so tried simple-storage i want give names for simple storage like we assigning to localstorage like this

for (i = 0; i < data.length; i++) {
localStorage[i] = data[i];
}

when i tried simple-storage ss.storage.i it won't work. is that possible to store data like this or is there anyother alternate ways to store like this.?

役に立ちましたか?

解決

converting the comment from above to the answer. the issues is you have to use brackets. i dont know much about ss.stroage though btw.

ss.storage[i]

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top