//短信操作
var wait=60;
function time() {
    var code = document.getElementById('code_send');
    if (wait == 0) {
        code.removeAttribute("disabled");            
        code.innerHTML="获取验证码";
        wait = 60;
    } else { // www.jbxue.com
        code.setAttribute("disabled", true);
        code.innerHTML="重新发送(" + wait + ")";
        wait--;
        setTimeout(function() {
            time()
        },
        1000)
    }
}

 

相关文章:

  • 2021-11-17
  • 2022-01-12
  • 2022-12-23
  • 2021-11-24
  • 2021-12-04
  • 2021-12-21
猜你喜欢
  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-03
相关资源
相似解决方案