控制层返回值为void时给void加上@ResponseBody注解,不然无法成功提交 public @ResponseBody void add(){...} 表单中删掉<input type="submit">改为 <input type="button"> Ajax回调函数中添加 window.location.href="重定向链接"; 来源:https://www.cnblogs.com/yxmhl/p/11604772.html 标签 重定向 ajax