<script type="text/javascript">
const n = document.querySelector(".n");
const countdown = 5;
let counter = countdown;
n.innerHTML = counter+"秒";
setInterval(() => {
counter--;
n.innerHTML = counter+"秒";
if (counter === 1) {
counter = countdown + 1;
}
}, 1000);
</script>