📜  刷新 ajax jquery - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:24.058000             🧑  作者: 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);