如何找出jquery数据表中是否存在某个页码?

How to find out the certain page number is exists in the jquery datatable?

我想知道有没有什么方法可以查出jquery数据表

中是否存在某个页码

使用这个:

$(table).datatable().page.info().pages

使用这个函数:

function is_page_exists(table, pagenum) {
  return table.page.info().pages > pagenum;
}