var wait = 15,
timer;
time($(".myRead"));
function time(o) {
if(wait == 0) {
o.removeAttr("disabled");
o.removeClass("myRead_time")
o.html("已阅读并同意");
wait = 15;
} else {
o.attr("disabled", true);
o.html("已阅读并同意(" + wait + "s)");
wait--;
timer = setTimeout(function() {
time(o)
}, 1000)
}
}
网友评论