I have a web statistic website based on php script. I want to show in real-time to my clients when a visitors hits their website. The info is presented in static way, the clients must refresh the page to see if any hi开发者_JAVA技巧t ocurred. I searched and tried...but nothing.
use jQuery and ajax
demo:
setInterval(function(){
$("#statistics").load("statistics.php");
}, 10000);
精彩评论