在mvc中使用jquery的html表分页

问题描述:

我想在使用jquery的大量数据的表中进行分页我试了很多但我不知道怎么能这样做请帮助

i want to do paging in a table which have the large number of data using jquery i tried a lot but i don't know how can i do this please help

您可以查看本文是否已完成MVC和EF。对于大数据,当你使用Jquery时,初始加载会很高。

使用实体框架在MVC 5中进行分页 [ ^ ]
You can check this article is done with MVC and EF. for large data initial load will be high when you use Jquery.
Paging In MVC 5 with Entity Framework[^]


for jquery paging download jquery插件来自以下链接:



http://www.jqueryrain.com/ 2012/04 / best-ajax-jquery-pagination-plugin-tutorial-with-example-demo / [ ^ ]
for jquery paging download jquery plugin from below links :

http://www.jqueryrain.com/2012/04/best-ajax-jquery-pagination-plugin-tutorial-with-example-demo/[^]


你这个:





//添加以下参考

https://code.jquery.com/ui/1.12.1 /themes/base/jquery-ui.css

https://cdn.da tatables.net/1.10.19/css/dataTables.jqueryui.min.css

https://code.jquery.com/jquery-3.3.1.js

https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js

https://cdn.datatables.net/1.10.19/js/dataTables.jqueryui .min.js






You this:


//add the below reference
https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css
https://cdn.datatables.net/1.10.19/css/dataTables.jqueryui.min.css
https://code.jquery.com/jquery-3.3.1.js
https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js
https://cdn.datatables.net/1.10.19/js/dataTables.jqueryui.min.js