function settime(obj) { //发送验证码倒计时
if (countdown == 0) {
obj.attr(‘disabled’,false);
//obj.removeattr(“disabled”);
obj.val(“免费获取验证码”);
countdown = 60;
return;
} else {
obj.attr(‘disabled’,true);
obj.val(“重新发送(” + countdown + “)”);
countdown–;
}
setTimeout(function() {
settime(obj) }
,1000)
}
实现发送短信验证码后60秒倒计时
最新推荐文章于 2023-04-27 18:19:12 发布