oBtn.disabled = true;//不可点击状态;
oBtn.disabled = fasle;//可点击状态;
window.onload=function(){
var aInput=document.getElementsByTagName('input');
var num=60;
var timer;
aInput[0].onclick=function(){
clearInterval(timer);
timer=setInterval(tab,1000);
}
function tab(){
num--;
aInput[0].value=num+'秒后重新获取验证码';
aInput[0].disabled=true; //点击之后不能再点击;
if(num<0){
clearInterval(timer);
aInput[0].value='重新获取验证码';
num=60;
aInput[0].disabled=false;}
}
}