Home >Web Front-end >JS Tutorial >jQuery front-end paging example sharing_jquery
When people do paging, most of them return an HTML string for the navigation bar in the background. In fact, it is also easy to implement using js on the front end.
Call the pager method, enter parameters, and an HTML string of the navigation bar will be returned. The internals of the method are relatively simple.
Try this method
复制代码
http://www.w3.org/1999/xhtml">
CustomerID | CompanyName | ContactName | ContactTitle | Address | City | Region | PostalCode | Country | Phone | Fax |
---|
看下效果
列有点多,我只截图了部分,界面好丑,加点样式,用bootstrap来美化下
使用Nuget安装bootstrap
加上样式后
虽说不是特别漂亮,但还是对得起观众吧。
代码下载https://github.com/dengjianjun/JsPager
如果觉得对你有帮助,请点个赞,谢谢!