...
|
...
|
@@ -16,7 +16,7 @@ |
|
|
|
|
|
- 使用
|
|
|
|
|
|
express 服务端路由
|
|
|
1. express 服务端路由
|
|
|
|
|
|
res.render('index', {
|
|
|
helpers: {
|
...
|
...
|
@@ -30,10 +30,12 @@ |
|
|
}
|
|
|
});
|
|
|
|
|
|
handlebars view
|
|
|
2. handlebars view
|
|
|
|
|
|
{{{ pagination paginationOpts }}}
|
|
|
|
|
|
3. 将public/css/components/pagination.css 引入到项目中index.css
|
|
|
|
|
|
- 参数option
|
|
|
|
|
|
- 每页显示10条纪录
|
...
|
...
|
|