Comprehensive overview
Processing cookies through native JavaScript is a headache, and jquery itself does not have a function to handle cookies,
But this extremely small (500 byte or so) of the jquery plug-in can be used to deal with cookies read and write and delete.
Compatibility
ie6+, Chrome, Firefox, Safari, Opera
Framework Dependencies
Dependency framework: jquery1.0+
Module support
No modules are currently supported
Use introduction
1. Create cookies through the $.cookie.write method, sample code as follows:
$.cookie.write (' Cookie_name ', ' cookie_value ', 24 * 60 * 60);
2. Read the cookie through the $.cookie.read method, the sample code is as follows:
$.cookie.read (' Cookie_name ')
3. Remove cookies by $.cookie.destory method, sample code as follows:
$.cookie.destroy (' Cookie_name ')
Download connection
https://github.com/stefangabos/Zebra_Cookie/
Licensing information
Authorization type: LGPL
Authorization Type information: Https://github.com/stefangabos/Zebra_Cookie/blob/master/license.txt
Change Log
http://stefangabos.ro/jquery/zebra-cookie/
Other supplements
A very good plugin, worthy of recommendation