window.onload=function(){freshTime(); }
function freshTime()
{
$.get("fresh_time.aspx");
setTimeout("freshTime()",60*1000);
}
我在后台框架页上加了这段代码定时刷新管理员在线时间,但是一调试就会导致程序瘫痪无响应了,请问这是什么原因啊?
function freshTime()
{
$.get("fresh_time.aspx");
setTimeout("freshTime()",60*1000);
}
我在后台框架页上加了这段代码定时刷新管理员在线时间,但是一调试就会导致程序瘫痪无响应了,请问这是什么原因啊?
你可以用ajax 这样就不会出现那种情况了
但是我用的$.get("fresh_time.aspx"); 是jquery的ajax啊
{
$.get("fresh_time.aspx");
//setTimeout("freshTime()",60*1000); //去掉
}