标签:html 验证码 att function 短信 code setattr else move
//短信操作
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)
}
}
标签:html 验证码 att function 短信 code setattr else move
原文地址:http://www.cnblogs.com/caiCheryl/p/7667768.html