JSP&JavaScript&HTML
[Javascript] setTimeout
헤르메스의날개
2020. 12. 2. 01:35
728x90
setTimeout
if(typeof (Editor) != "undefined") {
// Editor가 undefined 이면 실행
} else {
setTimeout( function () {
doAction( "setDetail01");
}, 500);
}
// 0.5초 후 setDetail01() Function을 호출한다.
// 재귀호출 할 때 좋은 함수이다.
setTimeout(function () {
doAction( "setDetail01");
}, 500);
728x90