Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- API 토큰
- Git
- git lab
- SCSS
- ngrok실행
- icon
- react env
- API token
- styled components
- getModifierState
- rewrites
- createGlobalStyle
- typescript react
- fetch
- dart 변수
- nextjs .env
- github io
- github
- input type=file
- next.js css
- CSS
- 컨디셔널 렌더링
- bootstrap
- There isn’t anything to compare
- nextjs
- react
- npm styled-reset
- ngrok설치
- react typescript
- nextjs 설치
Archives
- Today
- Total
목록콜백 (1)
꾸준히 성장하는 개발자
[JavaScript] 타이머 함수 , 콜백(Callback)
타이머 함수 setTimeout(함수, 시간) : 일정 시간 후 함수 실행 setInterval(함수, 시간) : 시간 간격마다 함수 실행 clearTimeout() : 설정된 Timeout 함수를 종료 clearInterval() : 설정된 Interval 함수를 종료 위에서 작성되는 시간의 단위는 ms 1000ms = 1s = 1초 이다. ex) // 3초가 되면 console창에 hi가 뜬다 const timer = setTimeout(()=>{ console.log('hi') },3000) const h1El = document.querySelector('h1') // 3초가 지나기 전에 h1 태그를 클릭하면 timer함수는 실행되지 않는다 h1El.addEventListener('click', ..
JavaScript
2022. 4. 18. 19:47