Home > Web Front-end > JS Tutorial > Recommended jquery plug-in jquery.cookie_jquery

Recommended jquery plug-in jquery.cookie_jquery

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

Comprehensive overview

Handling cookies through native JavaScript is a headache, and jQuery itself does not have functions to handle cookies,
But this extremely small (about 500 bytes after compression) jquery plug-in can be used to handle the reading, writing and deletion of cookies.

Compatibility

IE6, Chrome, Firefox, Safari, Opera

Framework dependencies

Dependent framework: jQuery1.0

Module Support

No modules are supported yet

Usage introduction

1. Create a cookie through the $.cookie.write method. The sample code is as follows:

$.cookie.write('cookie_name', 'cookie_value', 24 * 60 * 60);
2. Read cookies through the $.cookie.read method. The sample code is as follows:

$.cookie.read('cookie_name')
3. Delete cookies through the $.cookie.destroy method. The sample code is as follows:

$.cookie.destroy('cookie_name')
Download link

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

Authorization information

License type: LGPL

License type information: https://github.com/stefangabos/Zebra_Cookie/blob/master/license.txt

Change Log

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

Other supplements

A very good plug-in, worth recommending

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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template