Published
Edited
Jun 27, 2020
Insert cell
md`# 14주차로 넘어와서
Timing Event<br>
문득 내가 한 문제도 풀지 못 할 것이라는 직감이 느껴졌다. <br>-> 직감이 빗나갔다(2020/06/27) :ㅁ
`
Insert cell
document01 = html`<output>타이밍 이벤트 실행...</output>`
Insert cell
setTimeout( callback, 2000)
Insert cell
callback = () => document01.innerHTML += "2초 후에 실행하기"
Insert cell
startbtn = html`<button type="button">시작</button>`
Insert cell
endbtn=html`<button type="button">정지</button>`
Insert cell
startbtn.onclick = () => {
startbtn.disabled = true
const interval = setInterval ( callback1, 1500 )
endbtn.disabled = false
endbtn.onclick = () => { clearInterval (interval); endbtn.disabled = true;
startbtn.disabled = false;
}
}
Insert cell
callback1 = () => {
document01.innerHTML += "반복 실행 예제!! "
}
Insert cell
md`---
# 다음 학기도 온라인 강의라면 <br> 한 학기 쉬어가는 것도<br> 나쁘지 않을 것 같다

---
`
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more