-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.html
48 lines (44 loc) · 1.32 KB
/
demo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE html>
<html>
<head>
<meta chartset="utf-8"/>
<link rel="stylesheet" href="css/bootstrap.css">
<script type="text/javascript" src="js/jquery-1.8.0.js"></script>
<script type="text/javascript" src="js/bootstrap.js"></script>
<script type="text/javascript" src="jquery.pagination.js"></script>
<style type="text/css">
body {
margin: 50px auto;
}
.container, .main {
width: 760px;
}
.main {
height: 400px;
background: #eee;
}
</style>
<script type="text/javascript">
jQuery(function($) {
$("#page").pagination({
className: "pagination-right",
page: 1, // current page
count: 30, // page count
num: 10, // number
refresh: false, // reflush
callback: function(currpage, newpage) {
console.log(currpage + " -- " + newpage);
}
});
});
</script>
</head>
<body>
<div class="container">
<div class="main">
</div>
<div id="page">
</div>
</div>
</body>
</html>