一、全页面刷新
添加初始化后事件
支持定时js,以及取消定时
- setInterval("self.location.reload();",10000); //时间单位为ms,即每10s刷新一次页面
取消定时js
- var timer = setInterval("self.location.reload();",10000); clearInterval(timer); //取消定时
二、组件局部刷新
setInterval(function() {
form.getWidgetByName('report0').gotoPage(1,"{}",true);
}, 5000); //刷新报表块report0 5s刷新一次