且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

jQuery/Ajax刷新而不重新加载或加载页面吗?

更新时间:2023-10-30 16:50:04

请参阅我的问题并与其一起使用setInterval函数

and use setInterval function with it

var refreshId = setInterval(function() 
{
    $("#yourContainer").load('yourPage.php');
}, 5000);

offcourse Jquery对此是必不可少的...因此从这里下载 jQuery 并将其包含在您的页面中

offcourse Jquery is prereq for this... so download jQuery from here and include it in your page

<script href="yourlink to the file"></script>