alert('请选择记录');history.go(-1);"; } else { for ($i = 0; $i < count($_POST["chk"]); $i++) { //for语句循环读取复选框提交的值, $sql = "delete from list where id=" . $_POST["chk"][$i]; mysqli_query($con, $sql); } echo ""; }