元芳怎么了
1、我们需要设置State来存储数据的状态,在未下载完成时为false完成时则设置成true[javascript] view plain copy<span style="font-size:18px;"> constructor(props){super(props);var ds = new ListView.DataSource({rowHasChanged:(oldRow,newRow) => oldRow!==newRow});this.state = {/*1设置初始值*/loaded: false,dataSource:ds};