2 sessisn sessisn 于 2015.06.17 15:51 提问

SERVLET+AJAX如何按类别无刷新分页?请大侠赐教,在线等.

图片说明

2个回答

cuiwei1026522829
cuiwei1026522829   Ds   Rxr 2015.06.18 23:19
已采纳

public class Controller extends HttpServlet {
protected void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
String s = req.getParameter("a");
resp.setContentType("text/xml");
resp.setHeader("Cache-Control", "no-cache");
resp.getWriter().write(s);
}
}

http://download.csdn.net/download/dynastqin/4926624

bulusli3
bulusli3   Ds   Rxr 2015.06.17 15:59

利用jquery的datatable插件可以实现请求数据和分页。参考这个。http://www.tuicool.com/articles/NBBnum

Csdn user default icon
上传中...
上传图片
插入图片