jquery插件推荐 jquery.cookie_jquery

WBOY
Release: 2016-05-16 16:31:38
Original
1463 people have browsed it

综合概述

通过原生的JavaScript实现处理cookies是一项头疼的工作,并且jQuery本身也不具备解决处理cookies的函数,
但是这个极其小(压缩后解决500字节左右)的jquery插件可以用来处理cookies的读写和删除。

兼容性

IE6+、Chrome、Firefox、Safari、Opera

框架依赖

依赖框架:jQuery1.0+

模块支持

暂不支持任何模块

使用介绍

1.通过$.cookie.write方法创建cookie,示例代码如下:

$.cookie.write('cookie_name', 'cookie_value', 24 * 60 * 60);
2.通过$.cookie.read方法读取cookie,示例代码如下:

$.cookie.read('cookie_name')
3.通过$.cookie.destory方法删除cookie,示例代码如下:

$.cookie.destroy('cookie_name')
下载连接

https://github.com/stefangabos/Zebra_Cookie/

授权信息

授权类型:LGPL

授权类型信息:https://github.com/stefangabos/Zebra_Cookie/blob/master/license.txt

更改日志

http://stefangabos.ro/jquery/zebra-cookie/#changelog

其他补充

一个很不错的的插件,值得推荐

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!