码迷,mamicode.com
首页 > Web开发 > 详细

jQuery 发送验证码倒计时按钮

时间:2015-01-20 17:43:20      阅读:218      评论:0      收藏:0      [点我收藏+]

标签:

技术分享
  1. {
  2. wait:90,
  3. hsTime:function(that){
  4. if (this.wait == 0) {
  5. $(‘#hsbtn‘).removeAttr("disabled").val(‘重发短信验证码‘);
  6. this.wait = 90;
  7. } else {
  8. var _this = this;
  9. $(that).attr("disabled", true).val(‘在‘+_this.wait+‘秒后点此重发‘);
  10. _this.wait--;
  11. setTimeout(function() {
  12. _this.hsTime(that);
  13. }, 1000)
  14. }
  15. },
  16. }
技术分享

 

jQuery 发送验证码倒计时按钮

标签:

原文地址:http://www.cnblogs.com/xiaohong/p/4236279.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!