0
以下是我有我需要的cookie後像5分鐘過期我該怎麼做VS,現在我把它設置爲30天JS的cookie在到期分鐘而不是幾天
av_setCookie = function(e) {
e.preventDefault();
var is_legal = $(e.currentTarget).attr('rel');
$.cookie('is_legal', is_legal, {
expires: 30,
path: '/'
});
if (is_legal == "yes") {
av_closeModal();
$(window).off('resize');
} else {
av_showRegret();
}
};
可能重複(http://stackoverflow.com/questions/1830246/how-到期滿- - 使用-jquery的一個cookie的功能於30分鐘的) – shanehoban