📜  jquery 数据表销毁和重新创建 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:21.893000             🧑  作者: Mango

代码示例1
$("#Table").DataTable().clear().destroy();
            $("#Table").dataTable({
                "sAjaxSource": '@Url.Action("YourMethod", "UrCOntrollerName")',
                "bServerSide": true,
                "bProcessing": false,
                "searching" : false,

                "columns": [
                    {
                        "data": "ID",
                        "autoWidth": true,
                        "searchable": false,
                        "mRender": function (arqs, type, data) {
                            return "Remove";
                        }
                    },