js 60秒倒计时
<div id="countdown">60</div>
<script>
var countdown = document.getElementById("countdown"), second = 60, timer = null;
timer = setInterval(function () {
if (second > 0) {
second--;
countdown.innerHTML = second;
} else {
clearInterval(timer);
timer = null;
}
}, 1000);
</script>