var massage=confirm("确定删除?"); if(massage==true){ var a=$("input[type=checkbox]:gt(0):checked"); 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("删除成功!"); }
10-17