定时器
var wait=60;
function time(o) {
if (wait == 0) {
o.attr("disabled",false);
o.html("获取验证码");
wait = 60;
} else {
o.attr("disabled", true);
o.html("重新发送(" + wait + ")");
wait--;
setTimeout(function() {
time(o)
},
1000)
}
}
// document.getElementById("btn").οnclick=function(){time(this);}
$('#btn').click(function(){
time($(this))
})