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

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -