zoukankan      html  css  js  c++  java
  • 1

        <script>
            $(function () {
                //全选
                $("#chkAll").click(function () {
                    $("[name='chkItem']").prop("checked", $("#chkAll").prop("checked"));
                })
            })

            function Dels() {

                var arr = [];
                if (confirm("确认删除吗?")) {
                    $("[name='chkItem']:checked").each(function () {
                        arr.push($(this).val());
                    })

                    $.ajax({
                        url: "/Students/DeleteInfo",
                        type: "get",
                        data: { id: arr.toString() },
                        success: function (data) {
                            if (data > 0) {
                                alert("删除成功!");
                                location.href = "/Students/Index";
                            }
                        }
                    })
                }
            }
        </script>

  • 相关阅读:
    118.Java_前定义
    117.数据结构概述(定义,基本术语,层次)
    116.C语言_文件
    115.C语言_函数
    java数组
    sql语句学习(第二季
    linux查看内存
    增强型for和Iterator学习
    ArrayList和LinkedList
    java并发回答
  • 原文地址:https://www.cnblogs.com/jcy1/p/9530937.html
Copyright © 2011-2022 走看看