Javascript jQuery datatable设置对象的哪个属性显示;分页“;datatable的值是否为真?

Javascript jQuery datatable设置对象的哪个属性显示;分页“;datatable的值是否为真?,javascript,jquery,pagination,datatables,settings,Javascript,Jquery,Pagination,Datatables,Settings,代码如下: var $oTable = $('#table').DataTable( {"bPaginate" : true}; ); The following piece of code returns the settings object" $oTable.settings()[0] 现在,我需要知道settings对象的属性,它表示“分页”是true还是false。以下是显示浏览器控制台中设置对象的图像: b在自然和开放的环境下对服务器端进行宣传 在上搜索我看不到任何属性,我认为您

代码如下:

var $oTable = $('#table').DataTable( {"bPaginate" : true}; );

The following piece of code returns the settings object"
$oTable.settings()[0]
现在,我需要知道settings对象的属性,它表示“分页”是true还是false。以下是显示浏览器控制台中设置对象的图像:


b在自然和开放的环境下对服务器端进行宣传

在上搜索我看不到任何属性,我认为您必须执行类似于此版本功能的操作:

    function _fnCalculateEnd( oSettings )
    {
        if ( oSettings.oFeatures.bPaginate === false )
        {
            oSettings._iDisplayEnd = oSettings.aiDisplay.length;
        }
        else
        {
            /* Set the end point of the display - based on how many elements there are
             * still to display
             */
            if ( oSettings._iDisplayStart + oSettings._iDisplayLength > oSettings.aiDisplay.length ||
                   oSettings._iDisplayLength == -1 )
            {
                oSettings._iDisplayEnd = oSettings.aiDisplay.length;
            }
            else
            {
                oSettings._iDisplayEnd = oSettings._iDisplayStart + oSettings._iDisplayLength;
            }
        }
    }
因此,您必须知道是否存在分页,查看_IDisplay开始和_IDisplay长度(基+偏移量)以及结果数组的长度