定时器每隔10秒钟刷新一次jqgrid

//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;
}

若对您有用,请赞助个棒棒糖~

原文地址:https://www.cnblogs.com/shurun/p/11928302.html