var countdown=60;
$(".reset_getcode").click(function () {
var obj = $(".reset_getcode");
settime(obj);//调用倒计时方法
});
function settime(obj) { //发送验证码倒计时
if (countdown == 0) {
obj.text("获取验证码");
countdown = 60;
return;
} else {
obj.text("重新发送(" + countdown + ")");
countdown--;
}
setTimeout(function() {
settime(obj) }
,1000)
}