只要定时重新再访问后台的action。
$(document).ready(function(){
setInterval(getDate(),5000);
});
function getDate(){
$.post('getLog.action');
//$.get('getLog.action');
}get和post不行,$.ajax()只写url也不行。
jQuery新手,求助!!
$(document).ready(function(){
setInterval(getDate(),5000);
});
function getDate(){
$.post('getLog.action');
//$.get('getLog.action');
}get和post不行,$.ajax()只写url也不行。
jQuery新手,求助!!
setInterval(getDate(),5000);
});
function getDate(){
location.href = location.href;
}