62,254
社区成员
发帖
与我相关
我的任务
分享 $('body').everyTime('2s', 'C', function() {
//执行一个会超过20秒以上的程式
var URL = "/jingcaiweb/Home/getchange/";
$.get(URL, function(data) {处理请求} , 0, true);
)}
<html>
<head> <title> </title> </head>
<body>
<marquee id= 'mar ' direction= "up " scrollAmount=3 scrollDelay=110 width= '400 '
border= '1 ' height= '200 '>
<script>
document.write(new Date().toString());
</script>
</marquee>
<script>
function resetMar()
{
mar.innerHTML=new Date().toString();//这个可以改成ajax获取的数据
setTimeout(resetMar,5000);//5秒更新一次
}
resetMar();
</script>
</body>