【发布时间】:2013-12-27 16:47:27
【问题描述】:
JS:
$(document).ready(function() {
var check_cookie = $.cookie('the_cookie');
if(check_cookie == null){
$.cookie('the_cookie', 'the_value', { expires: 30 * 60 * 1000 });
$("#hidden_link").fancybox().trigger('click');
}
});
它有效。我想将过期时间更改为 3 天。我该如何解决?
【问题讨论】:
-
这是一道简单的数学题吗?
-
您使用的是什么版本?从 wiki 页面,只需要这样指定: $.cookie('the_cookie', 'the_value', { expires: 3 }); 3天。
标签: jquery cookies fancybox jquery-cookie