决策报表自动刷新数据 想要不刷新已选的条件,目前用的setInterval(function(){_g().parameterCommit();},500000); 这个段js。但是下面有滚动 这个滚动会在每次刷新之后加快。最后加快到看不清楚了。。。跑马灯jssetTimeout(function() { //隐藏报表块report0的滚动条(此报表块名为report0,根据具体情况修改) $("div").find(".frozen-north").css({ 'overflow-x':'hidden', 'overflow-y':'hidden' }); $("div").find(".frozen-center").css({ 'overflow-x':'hidden', 'overflow-y':'hidden' }); },2000); window.flag1 = true;var self1 = this;//鼠标悬停,滚动停止setTimeout(function() { $("div").find(".frozen-center").mouseover(function() { window.flag1 = false; }); //鼠标离开,继续滚动 $("div").find(".frozen-center").mouseleave(function() { window.flag1 = true; }); var old = -1; var interval = setInterval(function() { if (!self1.isVisible()) { return; } if (window.flag1) { currentpos1 = $("div").find(".frozen-center").scrollTop; if (currentpos1 == old && 0!=currentpos1) { $("div").find(".frozen-center").scrollTop = 0; } else { old = currentpos1; //以25ms的速度每次滚动1.5PX $("div").find(".frozen-center").scrollTop = currentpos1 + 1.5; } } }, 50);},2000);