幕布斯7119047
123456789101112131415JsonConfig jsonConfig = new JsonConfig();jsonConfig.registerJsonValueProcessor(java.util.Date.class,new JsonDateValueProcessor()); JSONArray json = JSONArray.fromObject(list,jsonConfig);ServletActionContext.getResponse().setContentType("text/html;charset=UTF-8");getResponse().setCharacterEncoding("utf-8");PrintWriter out = getResponse().getWriter();out.write(json.toString());Ext.Ajax.request({ url : '.html', params : {eid : eid}, method : 'POST', callback : function(options, success, response) { var json = Ext.util.JSON.decode(response.responseText); }, scope:this })