<script type="text/javascript">
function slp(){
var ids = "";
var id = document.getElementsByName("id");
for(var i = 0;i<id.length;i++){
if(id[i].checked==true){
ids =ids+ ","+id[i].value;
}
}
ids = ids.substring(1);
if(ids==null){
alert("还未选择");
return false;
}
alert(ids);
window.location.href="dc.do?ids="+ids;
}
</script>
```//ids在后台用String接受
<div class="se-preview-section-delimiter"></div>
这里写代码片
“`
“`
public String dc(String ids,Model model) throws IOException{
List se = employeeService.se(ids);
//sql
“`
select e.name,e.id,e.intime,e.salary,e.position,d.dname from employee as e,department as d where e.id = d.did and e.id in(${value})
</select>