jeesite前端页面与后台业务逻辑数据交互
Key Word:
jsp、controller、json、model、parameter、request、response、result、${param}、ajax、data、success、http
1、jsp中提交请求的方式有哪些(get、post)?各方式有什么不同?
(1)form submit action=“”
(2)js发送请求
(3)jquery $.post方式提交请求
(4)ajax提交请求
(5)href=“”发送请求
2、controller如何接收数据?
(1)controller中参数名与提交请求时的参数名相同,可以自动得到参数值;
(2)request.getParameter(String); request.getParameterMap();
3、controller返回数据的方式有哪些?
(1)model.addAttribute(String,Object);
(2)Result.suc(Object);
(3)renderString(response,Object);
4、jsp页面接收controller返回数据的方式有哪些?
(1)${param}
(2)ajax 回调函数的data;
5、控制页面跳转的方式有哪些?
(1)controller中return " jsp页面路径";
(2)window.location.href="";
下一篇:
Python “七段数码管绘制”