Storing Objects with Local Storage in JavaScript

Pubblicato il: 20 febbraio 2018
sul canale di: dcode
169,269
2.6k

The limitations of using Local Storage in JavaScript is that you are only able to store data as Strings. In this video, I take you through how to work around this and make it possible to store complex objects with Local Storage.

We can achieve this by serializing (JSON.stringify) the object to store it, and then de-serializing (JSON.parse) it to access it again.

Check this out:
https://developer.mozilla.org/en-US/d...

Follow me on Twitter @dcode!

If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!

#dcode #javascript #webdev


In questa pagina del sito puoi guardare il video online Storing Objects with Local Storage in JavaScript della durata di ore minuti seconda in buona qualità , che l'utente ha caricato dcode 20 febbraio 2018, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 169,269 volte e gli è piaciuto 2.6 mille spettatori. Buona visione!