How to reload JSON with AJAX every 10 Seconds

后端 未结 4 2001
小蘑菇
小蘑菇 2021-02-06 06:55

I\'m trying to reload a JSON file every 10 seconds with JQUERY.

The page is here: http://moemonty.com/chirp/chirp.html

The Code is here:



        
4条回答
  •  攒了一身酷
    2021-02-06 07:33

    You probably want the previous set of returned data replaced by the new set, instead of appending it. In that case, using jQuery you can do:

    etc...

提交回复
热议问题