【文件属性】:
文件名称:jquery.cookie.js
文件大小:4KB
文件格式:JS
更新时间:2017-05-12 07:42:13
cookie
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
网友评论
- 不错 我还是自已写了~
- 挺好用的,不错
- 还是用jquery操作方便。
- 尊重楼主的劳动成果,但是对我没什么作用
- 写的很详细