Jquery中文网 www.jquerycn.cn
Jquery中文网 >  jQuery  >  jQuery 插件  >  正文 Cookie操作插件 jQuery.Cookie

Cookie操作插件 jQuery.Cookie

发布时间:2014-04-28   编辑:www.jquerycn.cn
jQuery操作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
jquery操作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.cookie用法详细解析
jquery.cookie() 方法的使用(读取、写入、删除)
jquery cookie插件的用法举例
jquery操作cookie插件分享
jquery cookie的操作实例
jquery cookie的用法总结
微插件推荐系列:jquery.cookie
深入学习Cookie
利用js(jquery)操作Cookie的方法说明
可兼容IE的获取及设置cookie的jquery.cookie函数方法

[关闭]