Thymeleaf+jquery+Ajax 前后端交互(简单)+局部刷新+datatable局部刷新+页面间传值
使用Thymeleaf模板引擎,前后端未分离:方式一:.html文件://id为sssfunctionrefresh(){//需要发送的数据varmodeljson={"id":"1"}$.ajax({url:"/do",type:'post',//contentType:'application/json',//没规定就是默认的application/x-www-form-urlencoded;