Hi All,
  I need to implement paging for share point list as <prev>1 2 3<next>.
And the page numbers should be created dynamically based on the no of records per page.
if the reason for paging is because you’re customising a list view on a SharePoint site, then you should really look at using the tools MS provide rather than building custom. If the standard list views don’t provide enough functionality, then take a look at customising listviews using Display Templates.
Wes Preston has a great overview on how these works, as does Martin Hatch (more dev focussed)
Wes Preston – http://www.idubbs.com/blog/2012/js-link-for-sharepoint-2013-web-partsa-quick-functional-primer/
Martin Hatch – https://www.martinhatch.com/2013/08/jslink-and-display-templates-part-1.html
Finally, I have a blank template with paging that you can use sitting in the SPCSR github repo.. https://github.com/SPCSR/DisplayTemplates/blob/master/JavaScript%20Display%20Templates%20(JSLink)/Blank%20ListView%20Template/csr_ovr_RenderListTemplateWithPaging.js
Hope these help
Paul.
