日期:2014-05-16  浏览次数:20352 次

批量删除,js获取要删除的id
<script>
function getDeleteId(){
var str="";
var ids=$("input[name='delete_id[]']:checked");
var len=ids.length;
for(var i=0;i<len;i++){
str +=ids[i].value +",";
}
}
</script>

后台处理str:
$strs=$_REQUEST['str'];
$strs=substr($strs,0,strlen($strs)-1);
$arr=explode(","$strs);