我有个很怪异的问题,非常怪异。是后台传值给前台$ajax相关,知道的请给个QQ,代码有点长发不上来!
后台代码:str=str+"{'status':'2','childrenItem':[";inti=0;for(Jyhtkjyct:list){i++;str=str+...
后台代码:
str=str+"{'status':'2','childrenItem':[";
int i=0;
for (Jyhtk jyct : list) {
i++;
str=str+"{";
// str=str+"id:'"+i+"',";
str=str+"idn:'"+jyct.getIdn()+"',";
str=str+"cm:'"+jyct.getCm()+"',";
str=str+"th:'"+jyct.getTh()+"',";
str=str+"gg:'"+jyct.getGg()+"',";
str=str+"cz:'"+jyct.getCz()+"',";
str=str+"sl:'"+jyct.getSl()+"',";
str=str+"cs:'"+jyct.getCs()+"'";
str=str+"dj:'"+jyct.getDj()+"'";
str=str+"dz:'"+jyct.getDz()+"'";
str=str+"},";
}
if(str.endsWith(","))
{
str=str.substring(0,str.length()-1);
}
str=str+"]}";
//System.out.println(str);
str=StringUtil.chinaToUnicode(str);
out.write(str);
out.flush();
out.close();
放不下了,熟悉这块的请给个联系方式!!! 展开
str=str+"{'status':'2','childrenItem':[";
int i=0;
for (Jyhtk jyct : list) {
i++;
str=str+"{";
// str=str+"id:'"+i+"',";
str=str+"idn:'"+jyct.getIdn()+"',";
str=str+"cm:'"+jyct.getCm()+"',";
str=str+"th:'"+jyct.getTh()+"',";
str=str+"gg:'"+jyct.getGg()+"',";
str=str+"cz:'"+jyct.getCz()+"',";
str=str+"sl:'"+jyct.getSl()+"',";
str=str+"cs:'"+jyct.getCs()+"'";
str=str+"dj:'"+jyct.getDj()+"'";
str=str+"dz:'"+jyct.getDz()+"'";
str=str+"},";
}
if(str.endsWith(","))
{
str=str.substring(0,str.length()-1);
}
str=str+"]}";
//System.out.println(str);
str=StringUtil.chinaToUnicode(str);
out.write(str);
out.flush();
out.close();
放不下了,熟悉这块的请给个联系方式!!! 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询