0
을 실행하기 전에 대기하지 여기 내 코드입니다 :자바 스크립트 setInterval을 기능
돼있처럼 내 코드는 30000 밀리 기다리고되지<script type="text/javascript">
<!--
window.onload = function() {
function obtenirTOC(){
$.ajax({
type: "post",
url: "http://saaprod/soutien_tache/outils/preferencesAO/tocCheck.asp",
success: function(str){
if (str=="Oui"){
$("#show-hide-navigation").click();
}
}
})
}
setInterval(obtenirTOC(),30000);
}
//-->
</script>
. 페이지를로드하자 마자 실행 중입니다.
도와 주시겠습니까?
감사합니다.
당신이 바로 괄호를 통해 함수를 호출하고 있기 때문에이 ('()'), 그래서 기능처럼 포장을() {obtenirTOC()}) – thatOneGuy