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);

 

  });