Storing Objects with Local Storage in JavaScript

Veröffentlicht am: 20 Februar 2018
auf dem Kanal: 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


Auf dieser Seite können Sie das Online-Video Storing Objects with Local Storage in JavaScript mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer dcode 20 Februar 2018 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 169,269 Mal angesehen und es wurde von 2.6 tausend den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!