Local Storage in JavaScript

Опубликовано: 25 Июль 2021
на канале: colearnable
255
6

In this video Getting Started with Local Storage in JavaScript, we'll show how to use local storage in your browser window (e.g., what some people might call "local storage js"). We'll go over how to set storage, get storage, remove, and clear storage. We'll be using a little bit of custom css as well as an external library called Vanilla-tilt.js. That should be more or less a wrap!

For details of what we'll be doing with local storage in JavaScript (or more technically the browser API), we'll be using the methods of:

window.localStorage.setItem("someKey", "someValue")
window.localStorage.getItem("someKey")
window.localStorage.removeItem("someKey")
window.localStorage.clear()

A copy of the code used in this video can be found here:

https://replit.com/@CoLearnable/local.... Note that you'll have to copy the code to your local machine in order for it to work; we think this is the way Repl.it is constructed.

Find out more by reading the docs:

https://developer.mozilla.org/en-US/d...
https://developer.mozilla.org/en-US/d...


Смотрите видео Local Storage in JavaScript онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь colearnable 25 Июль 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 255 раз и оно понравилось 6 людям.