12
我有這樣的:JQuery的餅乾設置到期時間
if (typeof options.expires == 'number') {
date = new Date();
date.setTime(date.getTime() + (options.expires * 5 * 1000));
} else {
date = options.expires;
}
expires = '; expires=' + date.toUTCString();
如何做餅乾10分鐘後會過期嗎?
設置/獲取cookie,有幾個? – adeneo 2013-02-18 15:44:55
jquery。沒有它的單曲。 sry 4我的英語:P – 2013-02-18 15:46:37