var wait = 120;
function time(o) { if (wait == 0) { o.removeAttribute("disabled"); o.value = "免費獲取驗證碼"; wait = 5; } else { o.setAttribute("disabled", true); o.value = "重新發送(" + wait + ")"; wait--; setTimeout(function () {time(o) },1000) } }新聞熱點
疑難解答