当前位置:网站首页>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)
}
}
边栏推荐
- Sword finger offer II 022 Entry node of a link in a linked list
- dumi 搭建文档型博客
- Introduction and use of ES6
- JSTL -- JSP standard tag library
- This Sedata uses multiple methods to dynamically modify objects and values in arrays. Object calculation properties
- Forgotten fleeting years
- 基于DE2-115平台的VGA显示
- 建模杂谈系列143 数据处理、分析与决策系统开发的梳理
- Single chip microcomputer: main index of a/d (analog-to-digital conversion)
- Interpretation of usb-if bc1.2 charging protocol
猜你喜欢
Redis data persistence
[test development] installation of test management tool Zen path
Simple static web page + animation (small case)
VGA display based on de2-115 platform
Interpretation of usb-if bc1.2 charging protocol
MCU: NEC protocol infrared remote controller
Common encryption and decryption function encapsulation - AES encryption and decryption
Et framework -22 creating serverinfo entities and events
Interpretation and implementation of proxy mode
EMC整改纲要
随机推荐
Uni app enables pull-up loading and pull-down refresh (pull-down with animation)
Alipay native components (hotel time selection)
10 minutes to thoroughly understand how to configure sub domain names to deploy multiple projects
Analysis of the implementation principle of an open source markdown to rich text editor
[test development] basic concepts related to testing
Sword finger offer 11 Minimum number of rotation array - binary lookup
Tree array explanation
Summary of webdriver API for web automated testing
Solve the problem of running server nodemon reporting errors
SCM: introduction and operation of EEPROM
Differences and relations between three-tier architecture and MVC
MCU: RS485 communication and Modbus Protocol
Redis
[kubernetes series] pod chapter actual operation
Koa file upload and download
The data obtained from mongodb query data command is null
Example of try catch finally execution sequence
Dagger2学习之Module的应用(二)
Single chip microcomputer: basic concepts of a/d and d/a
El expression