Servlet 如何向前台穿一个boolean类型的值,源码如下
2014-06-24 来自:Mustafa 0 人回应

if (codelist.size() > 0) {
for (int i = 0; i < codelist.size(); i++) {
gzlArry[i] = jdcxxService.Selectgzl(qsrq, jsrq, codelist.get(i).getDmz());
if (null == gzlArry[i]) {
gzlArry[i] = "0";
}
if (i == 0) {
gzl = "{name:'" + codelist.get(i).getDmsm1() + "',y:" + gzlArry[i] + ",sliced:true,selected:true}";
} else {
gzl = gzl + ",['" + codelist.get(i).getDmsm1() + "'," + gzlArry[i] + "]";
}
}
gzl = "name: '业务数量',data:[" + gzl + "]";
System.out.println("生成饼状统计图JcsjpcServlet.gzl=" + gzl);
}

我用highcharts 生成饼状图,上面代码生成数据,sliced:true,selected:true 为默认显示参数,但是我穿到前台true并不是boolean类型,在线求破!!!!!

还没有人回应!

您的回应

你还未登陆,不能回应!登陆