提供方便方法操作cookie :
var cookieOption = {expires: 365};//声明cookie的保存周期
$.cookie("the_cookie"); // 获得cookie
$.cookie("the_cookie", "the_value"); // 设置cookie
$.cookie("the_cookie", "the_value", cookieOption); //设置带时间的cookie
$.cookie("the_cookie", null); // 删除 cookie
本文介绍了一种使用jQuery简化Cookie操作的方法,包括获取、设置、设置带时间的Cookie及删除Cookie等实用技巧。
311

被折叠的 条评论
为什么被折叠?



