Комментарии:
It was very clear. Thank you ❤️
Ответитьhi sir, value on localStorage still can be retrieve on new tab ? i mean, the value on local storage not dissapear even on new tab ?
ОтветитьJust what I needed! Thank you!
ОтветитьAmazing video!
ОтветитьGreat tutorial. Concise and great presentation. Thanks man
ОтветитьHow many storage there are in android webview
ОтветитьThanks I think I've learnt a lot here
Ответитьreally helpful thank you
ОтветитьHow about array of objects?
Ответитьdont work
Ответитьdont work
ОтветитьThis tutorial is well detailed, hit the nail on the head type of content, no withholding knowledge. Ver good!
ОтветитьThank you for this video! Really help clear up things!
ОтветитьI would avoid using the same name for the variable and the localStorage variable ... it may confuse people. Irecomment the var to besomething like myValue and the localStorage var as something else...this way people can distinguish what is what. Other than that...great video!
Ответитьthanks a lot...this was very helpful
ОтветитьVery nice explanation on local host like it + love it
ОтветитьThis I enjoyed.
ОтветитьSeperti session in php ~ and wait what different with cache ?
Ответитьvery clean video
Ответитьsir,
I am not a software engineer, I can never forget those old days late nineties with slow internet connection. Those days we could go back to the visited web pages in case internet connection breaks . that thing is not available in modern browser Now every time inter connection breaks we got download the page again. Is it possible to use or configure local storage as of that time
You dont need to stringify when you setItem if your object has couple of keys. You can do hybrid one. You can save it as Object directly and pull data getItem but split(" ") the output from getItem results. Example:
localStorage.setItem("name", "key1=5 key2=10")
var stored = localStorage.getItem("name")
var data = stored.split(" ")
var value = data[0].split("=")
alert("key1: " + value[1])
Also, you can get localStorage without getItem. You can call your item by localStorage["itemName"]
loop true the localStorage searching multiple items witch starts with item123, item233, item333:
var storage = Object.keys(localStorage)
for (var i = 0; i < storage.length; i++) {
if (storage[i].includes("item")){
divTag.innerHTML += localStorage.getItem(i) }}
😎
what if you want to use this for the values of radios, checkboxes or the select dropdown menus?
ОтветитьAwesome explanation bro ....
ОтветитьReally helpful, Thx, Zac!
ОтветитьVery useful - easy to understand. Thanks
ОтветитьThis is the best explanation on localstorage I've found. Super clear, all substance, no filler
ОтветитьSo helpful. Thanks man
ОтветитьThank you!
ОтветитьThe explanation is well defined. It is very clear, thanks
ОтветитьThis is huge. Thank you so much!
ОтветитьAWESOME... Can this work for saving this type of data into a remote s3 bucket? using JS? thanks
Ответить14+ minutes for just 4 methods? Are you kidding me?
----------------------------------
localStorage.setItem("video","very very long, I would say ridiculously long")
localStorage.getItem("video")
localStorage.removeItem("video")
localStorage.clear()
---------------------------------
There. Took me 2 minutes to type.
This was a fantastic explanation! Clear, concise, and well-structured. Thanks for doing such a great job!
Ответитьwhat data types can local storage to store ?
ОтветитьBest Explanation Ever!!!!!!!
Ответитьthank you so much, Great Help!
ОтветитьPerfect!
ОтветитьAwesome tutorial! Quick question, roughly how many entries can you store in localStorage?
Ответитьwhen my prof spent 2 lectures trying to explain this but this video explains it better in 15 minutes lmao
ОтветитьWell presented, very clearly explained!
ОтветитьHow can you use data in local storage to display on another page? Like clinking on a link on one page to display JSON data on another with that local storage? Ex: a link to a product details page! Thanks
Ответитьthank you is very helpful :)
Ответитьnot a very good teacher at all.
Ответить