验证码能否重新发送一次?

更新于
2026-09-30 19:11:59
2阅读来源:SEO教程
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计94个文字,预计阅读时间需要1分钟。

验证码能否重新发送一次?

plaintextgistfile1.txt: //启动验证码倒计时function StartInterval(buttonid) { var button=document.getElementById(buttonid); if (button) { button.disabled=true; var timeoutTick=180; var t1=window.setInterval(function () { // ... }, 1000); }}

gistfile1.txt

//启动验证码倒计时 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); } }

验证码能否重新发送一次?

本文共计94个文字,预计阅读时间需要1分钟。

验证码能否重新发送一次?

plaintextgistfile1.txt: //启动验证码倒计时function StartInterval(buttonid) { var button=document.getElementById(buttonid); if (button) { button.disabled=true; var timeoutTick=180; var t1=window.setInterval(function () { // ... }, 1000); }}

gistfile1.txt

//启动验证码倒计时 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); } }

验证码能否重新发送一次?