å¨html页é¢ï¼å
å¼å
¥jQueryæ件ï¼åå¼å
¥jQuery.cookie.jsçç±»åºæ件ã
ç¶åå¨scriptæ ç¾ä¸ä½¿ç¨æ¹æ³ï¼
$.cookie('the_cookie'); // 读å cookie
$.cookie('the_cookie', 'the_value'); // åå¨ cookie
$.cookie('the_cookie', 'the_value', { expires: 7 }); // åå¨ä¸ä¸ªå¸¦7天æéç cookie
$.cookie('the_cookie', '', { expires: -1 }); // å é¤ cookie
温馨提示:答案为网友推荐,仅供参考