$('#resourceList').dataTable({ "aLengthMenu": [ [10, 15, 20, -1], [10, 15, 20,30] // change per page values here ], "iDisplayLength": 10, "ajax": { "url": "resource/systemCheck.do", "type": "POST", "data":data }, "sPaginationType": "bootstrap", "bLengthChange": true,//改变每页显示数据数量 "bAutoWidth": false,//启用或禁用自动列宽度的计算。 "bFilter" : true, "bDestroy" : true, "bServerSide" : false, "bSortClasses" : false, "bSort" : false, "bProcessing": true, "oLanguage": { "sProcessing": "正在加载中......", "sLengthMenu": "每页显示: _MENU_", "sZeroRecords": "对不起,查询不到相关数据!", "sEmptyTable": "表中无数据存在!", "sInfo": "当前显示 _START_ 到 _END_ 条,共 _TOTAL_ 条记录", "sInfoFiltered": "数据表中共为 _MAX_ 条记录", "sSearch": "搜索:", "oPaginate": { "sFirst": "首页", "sPrevious": "上一页", "sNext": "下一页", "sLast": "末页" } }, "aoColumns": [ { "sClass": "center","mDataProp":"resultMsg", "sTitle": "检查项","sWidth": "12%"}, { "sClass": "center ","mDataProp":"resultKey", "sTitle": "结果","sWidth": "12%", "mRender":function(data,type,row){ var html,tpl = '<span style="color:{0};">{1}</span>' if("Noncompliance" == data){ html = tpl.format("#F00","不合规"); }else if("Compliance" == data){ html = tpl.format("#0F0","合规"); } return html; }}, { "sClass": "center","mDataProp":"resultKey", "sTitle": "操作" ,"sWidth": "10%", "mRender" : function(data, type, row) { var html = "<span title='修正' id='edituserbutton"+data+"' οnclick=\"$.resource.correctCheck(this)\" style='width: 20px; height: 20px; background: url(img/common/edit01.png) no-repeat center; display:inline-block;'></span>" return html; }}, ], "fnDrawCallback" : function(oSettings) { } });
datatables ajax post请求 延迟显示
原创qcwsh ©著作权
文章标签 datatables PoS请求 文章分类 前端开发
上一篇:Neo4j模糊查询及分页查询
-
Ajax请求post方式
Ajax请求post方式得到post.php返回的数据前端代码如下:<!DOCTYPE html><html lang="en"><head> <meta ch
ajax html javascript html5 php -
Ajax提交post请求
前言:博主之前有篇文章是快速入门Ajax,主...
ajax xml html php 表单 -
ajax异步请求post方式
//创建浏览器对象function createXhr(){ //判定浏览器
ajax异步请求post方式 ajax请求post方式 ajaxpost方式 xml microsoft -
ios发送ajax post 发送ajax请求
什么是ajax? Asynchronous JavaScript and XML 也就是异步的JavaScript和XMLajax的使用场景 前台获取数据 表单失焦验证我们需要了解post和get区别 get参数是在地址栏中,大小2000个字符左右 post参数是在请求
ios发送ajax post php 数据库 javascript ViewUI