Home > Article > Web Front-end > Recommended jquery plug-in jquery.cookie_jquery
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