且构网

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

页面加载10秒后如何在PHP中调用函数(不使用HTML)

更新时间:2022-04-07 22:37:16

此代码有效.根据randell的答案进行编辑.

This code works. Edited from randell's answer.

<script type="text/javascript" src="jquery.js"></script>          
<script type="text/javascript">

$(document).ready(function()
  {
    setTimeout(function()    {   $('#some_id').load('index.php');    }, 10000);
  });
</script>  

感谢兰德尔