- function updateShouts(){
- // Assuming we have #shoutbox
- $('#shoutbox').load('latestShouts.php');
- }
- setInterval( "updateShouts()", 10000 );
- //该片段来自于http://www.codesnippet.cn/detail/130120148508.html
来源: http://www.codesnippet.cn/detail/130120148508.html