Jquery. cookie_jquery recommended for jquery plug-ins

Source: Internet
Author: User
Here we will introduce jQuery. cookie, a plug-in compatible with all major browsers for processing cookies. For more information, see the following overview.

Using Native JavaScript to process cookies is a headache, and jQuery itself does not have a function to process cookies,
However, this extremely small jquery plug-in (about 500 bytes after compression) can be used to process the reading, writing, and deletion of cookies.

Compatibility

IE6 +, Chrome, Firefox, Safari, and Opera

Framework dependency

Dependency framework: jQuery1.0 +

Module support

Currently, no modules are supported.

Introduction

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

$. Cookie. write ('cookie _ name', 'cookie _ value', 24*60*60 );
2. read the cookie using the $. cookie. read method. The sample code is as follows:

$. Cookie. read ('cookie _ name ')
3. Use the $. cookie. destory method to delete a cookie. The sample code is as follows:

$. Cookie. destroy ('cookie _ name ')
Download connection

Https://github.com/stefangabos/Zebra_Cookie/

Authorization information

Authorization type: LGPL

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

Change log

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

Other supplements

A good plug-in, recommended

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.