public void deleteall(int id);
<delete id="deleteall" parameterType="int"> delete from t_city where id in(${value}) </delete>@RequestMapping("batchDelete") public String batchDelete(String[] ids){ for (String string : ids) { cityService.deleteall(Integer.parseInt(string)); System.out.println("ssss"+string); } return "redirect:/city/selectcity.action"; }$(function () { $("#del").click(function(){ var a=$("input[type=checkbox]:gt(0):checked"); if(a.length==0){ alert("请选择删除的数据..."); }else{ var array=new Array(); $("input[type=checkbox]:gt(0):checked").each(function(){ array.push($(this).parent().next().text()); }); alert(array); console.log(array); location.href="${pageContext.request.contextPath}/house/batchDelete.action?ids="+array; alert("删除成功!"); } }); })