--- order: 2 title: zh-CN: 加载更多 en-US: loadmore --- ## zh-CN 可通过 `loadMore` 属性实现加载更多功能。 ## en-US To show how to realize a loading more list with `loadMore` prop. ````jsx import { List, Avatar, Button, Spin } from 'antd'; import reqwest from 'reqwest'; const fakeDataUrl = 'https://randomuser.me/api/?results=5&inc=name,gender,email,nat&noinfo'; class LoadMoreList extends React.Component { state = { loading: true, loadingMore: false, showLoadingMore: true, data: [], } componentDidMount() { this.getData((res) => { this.setState({ loading: false, data: res.results, }); }); } getData = (callback) => { reqwest({ url: fakeDataUrl, type: 'json', method: 'get', contentType: 'application/json', success: (res) => { callback(res); }, }); } onLoadMore = () => { this.setState({ loadingMore: true, }); this.getData((res) => { const data = this.state.data.concat(res.results); this.setState({ data, loadingMore: false, }); }); } render() { const { loading, loadingMore, showLoadingMore, data } = this.state; const loadMore = showLoadingMore ? (