728x90
<script>
var timeInterval = setInterval ( function ()
{
console . log ( "2초 시간마다 계속 실행됩니다." );
}, 2000 );
setTimeout ( function ()
{
clearTimeout (timeInterval);
}, 5000 );
</script>
'개발 > javascript & jquery' 카테고리의 다른 글
ev.preventDefault() (0) | 2022.10.20 |
---|---|
[Restful][ajax]xhr 문법 한방 정리(new XMLHttpRequest();) (0) | 2022.10.19 |
node js에서 실행 할 때 사용 및 간단한 express(간단한 서버 구현 node.js 용 웹 프레임워크) (0) | 2022.10.17 |
로딩바 샘플 (0) | 2022.09.27 |
셀렉트 선택 값 가져오기 샘플 (0) | 2022.09.26 |