📜  jquery ajax refresh - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:07.406000             🧑  作者: Mango

代码示例2
function loadlink(){
    $('#links').load('test.php',function () {
         $(this).unwrap();
    });
}

loadlink(); // This will run on page load
setInterval(function(){
    loadlink() // this will run after every 5 seconds
}, 5000);