192
rated 0 times
[
194]
[
2]
/ answers: 1 / hits: 18456
/ 12 Years ago, thu, december 6, 2012, 12:00:00
I have a very simple dictionary .
var meta = {'foo':'1','moo':'2'}
I want to store this in the local storage and retrieve it.
window.localStorage.setItem(meta, meta);
var meta1 = window.localStorage.getItem(meta);
alert(meta1['foo']);
The above does not work. How can I do it?
More From » json