You are viewing a single comment's thread from:RE: [node.js 초급코딩5] 주기적으로 댓글달기(Ft. RunKit + npm)View the full contextView the direct parentmathetes (58)in #kr-dev • 6 years ago 아 setInterval 을 하면 interval 마다 한번씩 호출하는 구조인가요? 맞다면 가능할꺼 같습니다 다시 해봐야겠네요 :)
네..저 코드는 30초마다 실행이 되고, body.length 보다 커지면 clear 됩니다. ^^
비슷한 놈으로 setTimeout 은 한번만 실행이 되는 함수이고요.
아 저는 첨이 setTimeout 으로만 했었는데 setInterval 잘 활용해봐야겠네요 감사합니다 :)