mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-20 20:38:09 +08:00
20 lines
301 B
Markdown
20 lines
301 B
Markdown
|
# 跳转
|
||
|
|
||
|
- order: 3
|
||
|
|
||
|
快速跳转到某一页
|
||
|
|
||
|
---
|
||
|
|
||
|
````jsx
|
||
|
var Pagination = antd.Pagination;
|
||
|
|
||
|
function onChange(page) {
|
||
|
console.log(page);
|
||
|
}
|
||
|
|
||
|
React.render(
|
||
|
<Pagination showQuickJumper={true} onChange={onChange} total={500} />,
|
||
|
document.getElementById('components-pagination-demo-jump'));
|
||
|
````
|