/**
* 验证码倒计时
* @param obj
* @param hint 还原内容
*/
function count(obj,hint) {
var numTime = 60;
var time = setInterval(function () {
numTime--;
console.log(numTime);
obj.html(numTime+"s");
if(numTime==1){
clearInterval(time);
obj.html(hint);
obj.attr('disabled',false);
}
},1000)
}
网友评论