jquery cookie 정보
jquery cookie관련링크
본문
Installation
Include script after the jQuery library (unless you are packaging scripts somehow else):
<script src="/path/to/jquery.cookie.js"></script>
Usage
Create session cookie:
$.cookie('the_cookie', 'the_value');
Create expiring cookie, 7 days from then:
$.cookie('the_cookie', 'the_value', { expires: 7 });
Create expiring cookie, valid across entire page:
$.cookie('the_cookie', 'the_value', { expires: 7, path: '/' });
Read cookie:
$.cookie('the_cookie'); // => 'the_value' $.cookie('not_existing'); // => null
Delete cookie by passing null as value:
$.cookie('the_cookie', null);
추천
42
42
댓글 3개
뭐지?
오 쿠키 플러그 인이군요 간단하네요
흠..........