jq实现倒计时以及完成以后进行操作使用
function count(wait) {
function time() {
if (wait == 0) {
//倒计时完成以后进行操作
} else {
$("#varifyCode").show().text(wait + "s");//显示倒计时数字
wait--;
setTimeout(function () {
time();
}, 1000)
}
}
time();
}
count(60);

浙公网安备 33010602011771号