docs: update demo for Pagination, close: #3944

This commit is contained in:
Benjy Cui 2016-11-22 09:49:25 +08:00
parent 9febc9e71e
commit 1c26bca8fe

View File

@ -16,7 +16,12 @@ Jump to a page directly.
````jsx
import { Pagination } from 'antd';
function onChange(pageNumber) {
console.log('Page: ', pageNumber);
}
ReactDOM.render(
<Pagination showQuickJumper defaultCurrent={2} total={500} />
, mountNode);
<Pagination showQuickJumper defaultCurrent={2} total={500} onChange={onChange} />,
mountNode
);
````