code is as follows:  


jQuery. The cookie=function (name, value, options) {If (typeof value!='undefined') {//name and the value given to set cookiesThe options=options | | {};If http://www.jb51.net//web/==(value=null) {Value=' ';Options. Expires=1;}Var expires=' ';If (options. Expires &&(typeof options. Expires=='number' | | options. Expires. ToUTCString)) {Var date;If (typeof options. Expires=='number') {The date=new date ();Date. SetTime (date. GetTime () + (options) expires * 24 * 60 * 60 * 1000));} else {The date=options. Expires;}Expires=';='+ date expires. ToUTCString ();//use the expires attribute, Max - age is not supported by IE}Var path=options. The path? '; Path='+ options. Path:' ';Var domain=options. The domain? '; + options. Domain: domain=' ';Var secure=options. Secure? '; Secure the ':' ';Document. The cookie=[name, '=', encodeURIComponent (value), expires, path, domain, secure]. Join (");} else {//>

  code is as follows:  


$. Cookies (' the_cookie ');//get a cookie$. Cookies (' the_cookie ', 'the_value');//set the cookie$. Cookies (' the_cookie ', 'the_value, {expires, 7});//set the cookie with time 7 daysThe_cookie $. Cookies (' a ', ' ', {} expires: - 1);//delete$. Cookies (' the_cookie, null);//delete the cookieSetting cookies name-value pairs, the period of validity, path and domain, the security$. Cookies (' name ', 'value', {expires: 7, path: '/', domain: 'jquery.com', secure: true});


This concludes the body part