how to use jquery or ajax to refresh a div at 10 second intervals

前端 未结 3 1985
迷失自我
迷失自我 2021-01-14 14:06

Any help at all is appreciated here folks. I\'m building a web app in php and I\'m using the Yii MVC framework which has a lot of built in tools. Just as the title says, i n

3条回答
  •  别那么骄傲
    2021-01-14 14:41

    Usin jquery

    $(function() {
        function callAjax(){
            $('#myDiv').load("http://yourdomain.com");
        }
        setInterval(callAjax, 5000 );
    });
    

提交回复
热议问题