gistfile1.txt //启动验证码倒计时function StartInterval(buttonid) { var button = document.getElementById(buttonid); if (button) { button.disabled = true; var timeoutTick = 180; var t1 = window.setInterval(function () { if (timeoutTic
//启动验证码倒计时
function StartInterval(buttonid) {
var button = document.getElementById(buttonid);
if (button) {
button.disabled = true;
var timeoutTick = 180;
var t1 = window.setInterval(function () {
if (timeoutTick < 0) {
timeoutTick = 180;
button.innerHTML = "再次发送";
button.disabled = false;
window.clearInterval(t1);
t1 = null;
}
else {
button.innerHTML = timeoutTick + "s";
timeoutTick--;
}
}, 1000);
}
}
