a
[JS] localstorage
박은성/
2022. 3. 22. 19:19
반응형
브라우저는 아주 사소한 저장소를 제공한다.
l
localStorage.setItem(USERNAME_KEY, username); //("name(key) of the item", value of the item)
const savedUsername = localStorage.getItem(USERNAME_KEY);
반응형