标签:settime htm inner 验证码 function func 点击 att set
function Time3(left) { if (left == 0) { document.getElementById("kaptchaImg").innerHTML = "获取验证码"; document.getElementById("kaptchaImg").disabled = false; console.log(document.getElementById("kaptchaImg").getAttribute("disabled")); left = 60; }else { document.getElementById("kaptchaImg").innerHTML = left + "秒后重新获取"; left--; setTimeout(function () { Time(left); }, 1000); } };
Time3(60)
标签:settime htm inner 验证码 function func 点击 att set
原文地址:https://www.cnblogs.com/wuzhaoyu/p/12883051.html