javascript - Saving a particular Objects property in localstorage -
standard
localStorage.var = var; is not working for me, for example:
localStorage.library_science1.owned = library_science1.owned; Where library_science1 is an object already created with 'owned' property, can anyone please help?
Local storage only handles strings <00> while reading from local store JSON.stringify (Library_science1) , and use JSON.parse (localStorage.library_science1) .
Comments
Post a Comment