Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- bootstrap
- git lab
- createGlobalStyle
- rewrites
- nextjs .env
- styled components
- fetch
- SCSS
- react env
- dart 변수
- github io
- 컨디셔널 렌더링
- ngrok설치
- icon
- input type=file
- CSS
- next.js css
- ngrok실행
- react
- getModifierState
- npm styled-reset
- github
- typescript react
- API token
- API 토큰
- There isn’t anything to compare
- nextjs
- react typescript
- nextjs 설치
- Git
Archives
- Today
- Total
목록LocalStorage (1)
꾸준히 성장하는 개발자

LocalStorage - 데이터를 반영구적으로 사용할 수 있다 SessionStorage - 페이지 세션이 끝나면 데이터가 사라진다. 사용방법 1. 항목 추가하기 아래처럼 작성하는데 setItem을 이용하여 key, value를 저장해주면 되는데 문자 데이터를 이용하여 작성할 것 localStorage.setItem( key , value); localStorage.setItem('myCat', 'Tom'); 2. 항목을 읽는 방법 getItem을 이용하여 읽어낸다. const cat = localStorage.getItem('myCat'); 3. 항목 제거하기 제거할 때는 removeItem을 이용하여 키값을 적어주면 된다. localStorage.removeItem('myCat'); 아래처럼 작성을..
JavaScript
2022. 4. 25. 21:55