servlet中写 //返回给前端页面 PrintWriter out = response.getWriter(); out.println(jsonstr); out.flush(); out.close();
你这把map转化成jsonArray了,页面上是根据jsonObject去读取的