var time;
window.onload = Monitor = function() {
try {
var dte = new Date();
var url = "AppGroup.ashx";
$.ajax({
url: url,
data: { dte: dte },
method: 'GET',
dataType: 'html',
success: function(data) {
$("#lastime").html("最后一次更新时间:" + dte.toLocaleString());
if (data) {
$("#div_app").html(data);
}
}
});
if (time != null) {
clearTimeout(time);
}
time = setTimeout('Monitor()', 60000); //60 sec
}
catch (ex) {
alert(ex.message);
}
}
页面使用AJAX
最新推荐文章于 2024-11-27 20:04:26 发布