前后台存储交互的方法:
1,JSON方法:
1.前台传送JSON
2.request json
3.后台直接获取json 存储。
2.前台传参:
url: _ctx+"/rdp/door/door/query",
type: 'get',
data : {ctl : ctl,zoneid:zoneid,doorname:doorname}, //参数:当前页为1
3..增加数据转换参数:
public void save3_bak(@RequestBody PreParam pararm,HttpServletRequest request,HttpServletResponse response)
2.3 前台传参数:
$.ajax({
type: "post",
url: __ctx+"/rdp/CurrentPermission/currentPermission/save3",
contentType: "application/json;charset=utf-8;",
data:JSON.stringify(map),
dataType:"json",//注意不是datatype哦