function send() {
var time = 60;
function downTime() {
time–;
$(“#buvercodes”).attr({ “disabled”: “disabled” });
$(“#buvercodes”).text(time + ’ S后重获’);
if (time == 0) {
$(“#buvercodes”).removeAttr(‘disabled’);
clearInterval(n);
$(“#buvercodes”).text(‘获取验证码’);
}
}
var n = setInterval(downTime, 1000);
}
03-02
266
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
11-05
2720
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
06-02