test'
message.info('Click on left button.');直接弹出提示信息 console.log('click left button', e); 后台输出
区别
import { Pagination } from 'antd'; function onShowSizeChange(current, pageSize) { console.log(current, pageSize); } ReactDOM.render( <Pagination showSizeChanger onShowSizeChange={onShowSizeChange} defaultCurrent={3} total={500} /> , mountNode);
showTotal={total => `Total ${total} items`} showTotal={(total, range) => `${range[0]}-${range[1]} of ${total} items`}
今日事今日毕