목록전체 글 (27)
ㅤ
DOCTYPE html> 타이머 메소드 멈춰! /* setTimeout(function(){ alert("타임 아웃!") }, 3000) */ const p = document.getElementById("now") const button = document.getElementById("stop") let timerId = setInterval(function(){ const now = new Date() // 코드 실행 시점의 시간 정보를 속성으로 가진다 let year, month, day, hour, min, sec; year = now.getFullYear() month = now.getMonth() + 1 day = now.getDate() hour = now.getHours() min = no..
카테고리 없음
2023. 10. 18. 17:40