jquery.cookie.js 的使用

jquery.cookie.js 对cookie的操作
$.cookie('the_cookie'); //读取Cookie值
$.cookie('the_cookie', 'the_value'); //设置cookie的值
$.cookie('the_cookie', 'the_value', {expires: 7, path: '/', domain: 'jquery.com', secure: true});//新建一个cookie 包括有效期 路径 域名等
$.cookie('the_cookie', 'the_value'); //新建cookie
$.cookie('the_cookie', null); //删除一个cookie

下载地址:http://download.csdn.net/detail/qq450787302/7232749#comment

posted @ 2015-04-17 13:35  nemo20  阅读(486)  评论(0编辑  收藏  举报
访客数:AmazingCounters.com
2016/05/17 起统计