pagination equivalent code example
Example 1: pagination.js
$('#demo').pagination({ dataSource: [1, 2, 3, 4, 5, 6, 7, ... , 195], callback: function(data, pagination) { // template method of yourself var html = template(data); dataContainer.html(html); }})
Example 2: pagination
// input
$page, $limit
// output
$offset = (($page - 1) * $limit);
$limit = $limit;