本文共 625 字,大约阅读时间需要 2 分钟。
这里只介绍将表单对象序列化成Json字符串提交,以List接收[此方法我亲测成功]
HTML代码:
Controller层代码submitUserList_4 submitUserList_4
@RequestMapping(value = "/submitUserList_4", method ={RequestMethod.POST}) @ResponseBody public String submitUserList_4(@RequestBody List-----这里对easyUI中easyui-combobox也同样适用users) throws Exception{ for(User u:users){ userService.save(u); } return "success"; }
转载地址:http://wcagi.baihongyu.com/