mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-04 00:49:39 +08:00
20 lines
309 B
Markdown
20 lines
309 B
Markdown
# 改变
|
|
|
|
- order: 2
|
|
|
|
改变每页显示条目数。
|
|
|
|
---
|
|
|
|
````jsx
|
|
var Pagination = antd.Pagination;
|
|
|
|
function onChange(page) {
|
|
console.log(page);
|
|
}
|
|
|
|
React.render(
|
|
<Pagination showSizeChanger={true} onChange={onChange} total={500} />,
|
|
document.getElementById('components-pagination-demo-changer'));
|
|
````
|