我试图设置一个延迟的时间量的cookie。带.delay的jQuery .cookie?
我希望在页面上80分钟后设置cookie。
这里是我的代码 -
$(document).ready(function() {
// Set the cookie after 81 mins so the next visit has the button
$.cookie('EVGSalesLetter', 'visited').delay(4860000);
});
我认为延迟()应该*之前*你想要的东西elay。 :) – bzlm 2010-10-18 18:59:05
行之前的4个空格格式为代码。 'ctr-k'作为选择。 – 2010-10-18 19:03:13