일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- laravel
- java
- Gradle
- redis
- tool
- AWS
- Spring
- 맛집
- ubuntu
- Design Patterns
- php
- db
- linux
- devops
- MySQL
- IntelliJ
- it
- 요리
- ReactJS
- Web Server
- Spring Boot
- javascript
- springboot
- elasticsearch
- Git
- docker
- Oracle
- jsp
- JPA
- jenkins
Archives
- Today
- Total
목록Browser (1)
아무거나
[HTML5] LocalStorage와 SessionStorage
HTML5에서는 클라이언트측에 저장하는 2개의 객체를 제공한다. 하나의 세션 단위로 데이터를 저장하는 SessionStorage와 만료 기간이 없는 LocalStorage가 있다. 사용법은 아래 코드를 참고하자.- LocalStorage ``` localStorage.setItem('foo', 'bar'); localStorage.getItem('foo'); // "bar"를 출력 localStorage.removeItem('foo'); // "foo" 키를 지운다. localStorage.clear(); // 모두 지운다. localStorage.length; // 저장된 키의 개수 localStorage.key('bar'); // "foo"를 출력 -> 즉, 값으로 키를 찾음 ``` - Session..
Javascript & HTML & CSS/HTML
2019. 1. 9. 17:28