let now = new Date(); function showTime() {
let elm = document.getElementById(time);
let now = new Date();
let hour = now.getHours();
let min = now.getMinutes();
let sec = now.getSeconds();
elm. = hour + "時" + min + "分" + sec + "秒";
}
setInterval(showTime, 5000);
</script>
あなたの回答
tips
プレビュー