2014. 3. 14. 05:28
JQuery Cookie Plugin Javascript2014. 3. 14. 05:28
사용예제
<script src="/path/to/jquery.cookie.js"></script>
$.cookie('the_cookie', 'the_value');
$.cookie('the_cookie', 'the_value', { expires: 7 });
$.cookie('the_cookie', 'the_value', { expires: 7, path: '/' });
$.cookie('the_cookie'); // => "the_value"$.cookie('not_existing'); // => undefined
$.cookie(); // => { "the_cookie": "the_value", "...remaining": "cookies" }
$.removeCookie('the_cookie');
$.removeCookie('the_cookie', { path: '/' });
'Javascript' 카테고리의 다른 글
sumoselect 속도 문제 (0) | 2020.11.15 |
---|---|
브라우저 팝업차단 javascript로 감지 (0) | 2020.09.21 |
javascript lpad function (0) | 2017.11.14 |
getYear() vs getFullYear() (0) | 2014.03.14 |