JQuery, setTimeout not working

前端 未结 4 486
挽巷
挽巷 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:08

    This accomplishes the same thing but is much simpler:

    $(document).ready(function() {  
       $("#board").delay(1000).append(".");
    });
    

    You can chain a delay before almost any jQuery method.

提交回复
热议问题