mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-25 16:58:00 +08:00
20 lines
278 B
Markdown
20 lines
278 B
Markdown
# 简洁
|
|
|
|
- order: 6
|
|
|
|
简单地翻页。
|
|
|
|
---
|
|
|
|
````jsx
|
|
var Pagination = antd.Pagination;
|
|
|
|
function onChange(page) {
|
|
console.log(page);
|
|
}
|
|
|
|
React.render(
|
|
<Pagination simple onChange={onChange} total={50} />,
|
|
document.getElementById('components-pagination-demo-simple'));
|
|
````
|