阅读背景:

每隔X分钟用AJAX调用一个文件,直到Y时间?

来源:互联网 

I have the following code

我有以下代码

$(document).ready(function() {
    $.ajaxSetup({ cache: false }); // This part addresses an IE bug. without it, IE will only load the first number and will never refresh
    setInterval(function() {
        $('#chatresults').load('includes/chat.php');
    }, 3000); // the "3000" here refers to the time to refresh the div. it is in milliseconds.
});
$(document



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: