当前位置:网站首页>Get verification code

Get verification code

2022-06-13 04:23:00 Twinkle, twinkle, twinkle, twinkle, twinkle, twinkle, twinkle,

 // Verification Code 
  var counts = 60;
 function settime(val) {
            console.log('val:',val)
            if(counts == 0) {
                val.style.color = '#F5B089';
                val.innerHTML = " Recapture ";
                counts = 60;
                return false;
            } else {
                val.style.color = '#999';
                val.innerHTML = `${counts} Reacquire after `
                counts--;
            }
            setTimeout(function() {
                settime(val);
            }, 1000);
        }
        
        // Get verification code 
        function getValidCode(){
            const validCodeBtn = document.getElementById("validCodeBtn")
            if(validCodeBtn.innerHTML == ' Get verification code ' || validCodeBtn.innerHTML == ' Recapture ' ){
                this.settime(validCodeBtn)
            }
        }

原网站

版权声明
本文为[Twinkle, twinkle, twinkle, twinkle, twinkle, twinkle, twinkle, ]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202280523392001.html