料青山看我应如是
JSONArray json = JSONArray.fromObject(models); //list集合数据转jsonresponse.getWriter().println(json);//传到前台//ajaxsuccess: function(data){var models = eval("("+data+")");var rows="";for(var i in models){rows =rows + "<tr>"+"<td>"+models[i].statDate+"</td>"+"<td>"+models[i].endDate+"</td>"+"<td>"+models[i].name+"</td>"+"</tr>" ;}$("#show_table").append(rows);//添加到tablePS:这是Servlet的写法