1

我通过在 ajax jquery 和 php 中使用数据表插件创建了一个表。有一列状态显示发布,未发布....我想显示记录总数,已发布总数和未发布总数...我可以这样做吗?

这是我尝试过的

var oTable = $('#listings_row').dataTable( {
"iDisplayLength": 25,
             "iDisplayStart": 0,
                "bProcessing": true,
                "bServerSide": true,
                "sPaginationType": "full_numbers",
                "sAjaxSource": "ajax_files/server_processing_rentals.php",
                "fnRowCallback": function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {  return nRow;
}
            } );
4

1 回答 1

1

您可以SUM在查询(我假设)SQL 数据库中使用该函数。

于 2013-03-09T16:49:44.723 回答