public String XXXX(){
protected HttpServletRequest request = null;
request = ServletActionContext.getRequest();
JSONObject json = JSONObject.fromObject(returnMap);
request.setAttribute("result", json.toString());
return "success"
}
success:function(data){ try{ var r = JSON.parse(data); //data为json对象 for (var key in r) { keyID=key; SerialStr=r[key]; } }catch (e) { } }, error:function(){ alert("error"); }