本文转自:https://www.cnblogs.com/lenovo_tiger_love/p/7474403.html

 

中文翻译文档:

http://blog.csdn.net/rickiyeat/article/details/56483577

版本说明:

Jquery v2.1.1

Bootstrap V3.3.7

bootstrap-table V1.11.1

一、视图页

[转]Bootstrap table 分页 In asp.net MVC
 1 <!DOCTYPE html>
 2 <html xmlns="http://www.w3.org/1999/xhtml">
 3 <head>
 4     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 5     <title>测试</title>
 6     <link href="/Content/bootstrap.min.css" rel="stylesheet">
 7     <link href="/Content/bootstrap-table.min.css" rel="stylesheet">
 8     <script src="/Scripts/modernizr-2.8.3.js"></script>
 9 </head>
10 <body>
11     <div class="container">
12         <div class="row">
13             <div >
14                 <button >
15                     <span class="fa fa-pencil-square-o" aria-hidden="true"></span>批量显示
16                 </button>
17                 <button >
18                     <span class="fa fa-trash-o" aria-hidden="true"></span>批量删除
19                 </button>
20             </div>
21             <table ></table>
22         </div>
23     </div>
24     <script src="/Scripts/jquery/jquery-2.1.1.min.js"></script>
25     <script src="/Scripts/bootstrap.min.js"></script>
26     <script src="/Scripts/respond.min.js"></script>
27     <script src="/Scripts/bootstrap-table.min.js"></script>
28     <script src="/Scripts/bootstrap-table-zh-CN.js"></script>
29     <script src="~/Scripts/js/Activity/Comment.js"></script>
30     <script>
31         $(function () {
32 
33         //1.初始化Table
34         var oTable = new TableInit();
35         oTable.Init();
36 
37         //2.初始化Button的点击事件
38         var oButtonInit = new ButtonInit();
39         oButtonInit.Init();
40 
41     });
42     </script>
43 </body>
44 </html>
[转]Bootstrap table 分页 In asp.net MVC

相关文章: