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
- mapreduce
- Java
- 보조정렬
- Spring
- es6
- JavaScript
- R
- xPlatform
- react
- SQL
- NPM
- SPC
- vaadin
- Kotlin
- Eclipse
- SSL
- GIT
- IntelliJ
- Android
- Python
- plugin
- mybatis
- 공정능력
- hadoop
- table
- MSSQL
- tomcat
- Sqoop
- window
- Express
Archives
- Today
- Total
728x90
목록local storage (1)
DBILITY

browser 개발자도구의 Application tab을 봄ㄴ Storage안에 있다. 최대 5Mbyte 문자만 저장 가능하다. clear하지 않는 이상 남아 있음. 오버가 되면? 뭐 알아서 지워지지 않을까? browser console에서 직접 해보니 다음과 같다. object나 array는 json으로 저장하면 된다. string으로 저장했다가 다시 변환하면 된다. 다음 id라는 키값을 중복없이 data에 배열로 저장하는 typescript 예다. let data = JSON.parse(localStorage.getItem("data") || "[]"); if (data.find((value: string): boolean => value === id) === undefined) { data.push..
front-end & ui/javascript
2023. 6. 15. 14:48
728x90