代码一:
{ wait:90, hstime:function(that){ if (this.wait == 0) { $('#hsbtn').removeattr(disabled).val('重发短信验证码'); this.wait = 90; } else { var _this = this; $(that).attr(disabled, true).val('在'+_this.wait+'秒后点此重发'); _this.wait--; settimeout(function() { _this.hstime(that); }, 1000) } },}
代码二:
代码三:
10之后注册 10秒之后注册按钮才可以使用
代码四:
代码五:
最近在写短信发送验证码,就写了个js/jquery倒计时发送验证码按钮
