idea+springboot+ thymeleaf+ajax遇到的问题

后台返回的是String类型数据,因此前台ajax接收数据时,需将dataType定义为text形式html $.ajax({ url: ‘/mail/login’, dataType: “text”,//后台返回json就使用json headers: { ‘Content-type’: ‘application/x-www-form-urlencoded’ }, type: “POST”, d
相关文章
相关标签/搜索