Storing Objects with Local Storage in JavaScript

Опубликовано: 20 Февраль 2018
на канале: 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


На этой странице сайта вы можете посмотреть видео онлайн Storing Objects with Local Storage in JavaScript длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь dcode 20 Февраль 2018, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 169,269 раз и оно понравилось 2.6 тысяч зрителям. Приятного просмотра!