ajax 回传参数

JSONObject json = new JSONObject();
json.put("msg", msg);
json.put("success", count);
json.put("error", count2);
String jsonString=json.toJSONString();
response.getWriter().write(jsonString);

posted @ 2015-04-28 15:50  萧雪痕  阅读(221)  评论(0编辑  收藏  举报