//console.log('每隔*秒鍾刷新一次'); var timer = window.setInterval(function() { $("#table_list_1").trigger("reloadGrid"); },10 * 1000);
//console.log('每隔t秒鍾刷新一次'); function setTimer(t){ var timer = window.setInterval(function() { //do something here... //******************** },t * 1000); return timer; }
若對您有用,請贊助個棒棒糖~