wwwwww

$(document).ready(function() {
$('#example').DataTable( {
"processing": true,
"serverSide": true,
"ajax": {
"url": "scripts/server_processing.php",
"data": function ( d ) {
d.myKey = "myValue";
// d.custom = $('#myInput').val();
// etc
}
}
} );
} );
---------------------------
<table id="example" class="display" style="width:100%">
<thead>
<tr>
<th>First name</th>
<th>Last name</th>
<th>Position</th>
<th>Office</th>
<th>Start date</th>
<th>Salary</th>
</tr>
</thead>
<tfoot>
<tr>
<th>First name</th>
<th>Last name</th>
<th>Position</th>
<th>Office</th>
<th>Start date</th>
<th>Salary</th>
</tr>
</tfoot>
</table>
--------------------------------------
{
"draw": 3,
"recordsTotal": 57,
"recordsFiltered": 57,
"data": [
[
"Charde",
"Marshall",
"Regional Director",
"San Francisco",
"16th Oct 08",
"$470,600"
],
[
"Colleen",
"Hurst",
"Javascript Developer",
"San Francisco",
"15th Sep 09",
"$205,500"
],
[
"Dai",
"Rios",
"Personnel Lead",
"Edinburgh",
"26th Sep 12",
"$217,500"
],
[
"Donna",
"Snider",
"Customer Support",
"New York",
"25th Jan 11",
"$112,000"
],
[
"Doris",
"Wilder",
"Sales Assistant",
"Sidney",
"20th Sep 10",
"$85,600"
],
[
"Finn",
"Camacho",
"Support Engineer",
"San Francisco",
"7th Jul 09",
"$87,500"
],
[
"Fiona",
"Green",
"Chief Operating Officer (COO)",
"San Francisco",
"11th Mar 10",
"$850,000"
],
[
"Garrett",
"Winters",
"Accountant",
"Tokyo",
"25th Jul 11",
"$170,750"
],
[
"Gavin",
"Joyce",
"Developer",
"Edinburgh",
"22nd Dec 10",
"$92,575"
],
[
"Gavin",
"Cortez",
"Team Leader",
"San Francisco",
"26th Oct 08",
"$235,500"
]
]
}
------
order[0][dir]:asc
start:10
length:10
search[value]:
search[regex]:false
myKey:myValue
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值