How to reload JSON with AJAX every 10 Seconds

后端 未结 4 2049
小蘑菇
小蘑菇 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:35

    You have an error in console.log(data.query.results.json); - console is not defined. Also, you can use setInterval( "function()", 5000 );.

提交回复
热议问题