📜  fnserverparams aodata push 自定义过滤器 - Javascript 代码示例

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

代码示例1
$(document).ready(function() {
  $('#example').dataTable({
    "bProcessing": true,
    "bServerSide": true,
    "sAjaxSource": "/IndexXhr",
    "fnServerParams": function (aoData) {
        var includeUsuallyIgnored = $("#include-checkbox").is(":checked");
        aoData.push({name: "includeUsuallyIgnored", value: includeUsuallyIgnored});
    }
  });
});