如下JS,聚合报表中想取到block1对象,应该怎么写,block1是一个仪表盘 var color; var num = now/ all; console.log(now); console.log(all); console.log(num); if(num<0.75){ color = 'red'; } if(num>0.9 && num<1){ color = 'yellow'; } if(num>1){ color = 'green'; } var dashboard = fr.dashboard.getDashboardByName("block1"); setInterval( function() { dashboard.stroke = color }, 500); |