제 4회 dgmit r&d 컨퍼런스 : webstorage javascript 객체저장
DESCRIPTION
1.WebStorage javascript 객체 저장 2.window 객체, javascript class 저장 3.참고TRANSCRIPT
WebStorage javascript 객체 저장
2014. 10. 27
Version : 1.0.0 This material is proprietary to DGMIT. It contains trade secrets and confidential information which is solely the property of DGMIT.
This material is solely for the Client’s internal use. This material shall not be used, reproduced, copied, disclosed, transmitted,
in whole or in part, without the express consent of DGMIT © All rights reserved.
made by 정보배
R&D2팀
2
CONTENTS.
1. WebStorage javascript 객체 저장 … 5
2. window 객체, javascript class 저장 …… 6
3. 참고 ……………… 8
3
WebStorage javascript 객체 저장 객체 저장을 위해 객체를 문자열로 변환
Javascript 객체
결과 :
객체를 바로 WebStorage에 저장
1.
4
WebStorage javascript 객체 저장 객체 저장을 위해 객체를 문자열로 변환
Javascript 객체 obj객체를 JSON 문자열로 변환
변환된 문자열 저장
반환된 문자열을 개체로 변환
1.
5
1. WebStorage javascript 객체 저장 객체 저장을 위해 객체를 문자열로 변환
결과 :
6
2. Window 객체, javascript class 저장 객체 저장을 위해 객체를 문자열로 변환
결과 :
7
2. Window 객체, javascript class 저장 객체 저장을 위해 객체를 문자열로 변환
JSON.stringify 를 통해 window 객체를 문자열로 변환할 수 없다.
현재 WebStorage에 window 객체와 javascript class 객체
저장은 불가능하다고 판단된다.
8
3. 참고
http://stackoverflow.com/questions/13861254/json-stringify-deep-objects
http://ryoostar.tistory.com/66
http://m.mkexdev.net/59
http://lejewk.tistory.com/285
http://l2j.co.kr/2274
http://steadypost.net/post/lecture/id/13/
...
9
본사/기업부설연구소 : 135-874 서울특별시 삼성동 봉은사로 424 TROA빌딩 5층
Tel. 070-8680-1770 Fax. 02-2179-9114 http://www.dgmit.com