JQuery, setTimeout not working

前端 未结 4 491
挽巷
挽巷 2020-11-30 23:28

I\'m still new to JQuery, on the way to getting my ajax example to work i got stalled with setTimeout. I have broken it down to to where it should add \".\" to the div eve

4条回答
  •  囚心锁ツ
    2020-12-01 00:13

    setInterval(function() {
        $('#board').append('.');
    }, 1000);
    

    You can use clearInterval if you wanted to stop it at one point.

提交回复
热议问题