qazw_
tf996268809
2015-11-09 14:33

datatables 怎么添加行号 showrownum 属性加在什么位置

1
  • datatables

dataTable = $('#dt_basic').DataTable({
// order:[ 1, 'desc' ],//order
ordering: false,
showRowNumber:true,
serverSide:true,// where filtering, paging and sorting calculations are all performed by a server.
//stripeClasses:['','info'],// 给tr添加class [ 'strip1', 'strip2', 'strip3' ]
dom: "t<'dt-toolbar-footer'<'col-xs-6'il><'col-xs-6'p>>",
ajax: {
url: "transaction/caseManager/homeService/listData.htm",
type: "POST",
data:function(param){
param.homeServiceName = $("#homeServiceName").val();
param.phone = $("#phone").val();
param.sendDate1 = $("#sendDate1").val();
param.sendDate2 = $("#sendDate2").val();
param.status = $("#status").val();
}
},
columns:[
{

orderable: false ,
data:"homeServiceId",
render:function ( data, type, full, meta ){
return data;
}
},

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答

为你推荐

换一换