function timer()
{
var l = (new Date()-Date.parse(document.lastModified))/1000/3600/24);
alert(l);
if(l>1)
{
new Ajax().getData("MakeIndex.aspx","isAjax=true",function(obj){var a="";});
}
}
timer();
转载于:https://www.cnblogs.com/bestsaler/archive/2009/07/23/1835562.html