復制代碼 代碼如下:
var x=0;
function myRefresh()
{
var httpRequest = new ActiveXObject("microsoft.xmlhttp");
httpRequest.open("GET", "test.aspx", false);
httpRequest.send(null);
x++;
if(x<60) //60次,也就是Session真正的過期時間是30分鐘
{
setTimeout("myRefresh()",30*1000); //30秒
}
}
myRefresh();
新聞熱點
疑難解答
圖片精選