jquery 每个一段时间执行一次方法--改变验证码
$(function () { /***每隔5分钟改变一次验证码 jquery 扩展方法 ***/ $.extend({ referesh1: function () { myDate = new Date(); $("#<%=Image1.ClientID %>").attr("src", "../DisplayCheckNum.aspx?guid=" + myDate.getTime()); } }); timerID = setInterval("$.referesh1()", 1000 * 60 * 5); });
- 上一篇 »如何在JAVA中每隔一段时间执行一段程序?
- 下一篇 »《JavaScript 闯关记》之函数