完美实现、、、
so easy;;;
2015-07-09
<script type="text/javascript"> window.onload=function(){ var send=document.getElementById('send'), times=59, timer=null; send.onclick=function(){ send.value="60秒后重试" send.disabled="false"; timer=setInterval(function(){ send.value=times+"秒后重试" send.disabled="false"; times--; if(times<=0){ clearInterval(timer); send.removeAttribute("disabled"); send.value="发送验证码"; times=10; } },1000); } } </script>
这样就不会有任何延迟了
举报