2.4毕设

echart图分成好几个for循环赋值页面加载出来:
代码如下:
<%
double d,x0,y0;
Random random = new Random();
for(int i=0;i<100;i++)
{
d = random.nextDouble() * 105 * 100;
x0 = ((int) d) / 100f+230;
d = random.nextDouble() 200 100;
y0 = ((int) d) / 100f+100;
%>
{
name: '<%=oraRes[i].substring(0,oraRes[i].indexOf("="))%>',
x: <%=x0%>,
y: <%=y0%>,
symbolSize: <%=oraRes[i].substring(oraRes[i].indexOf("=")+1,oraRes[i].length())%>/2,
},
<%
}%>

原文地址:https://www.cnblogs.com/maxin123/p/12260096.html