let dataSource = [
{"userna":"张三","tranti":"30题"},
{"userna":"张三0","tranti":"30题"},
{"userna":"张三1","tranti":"30题"},
];
先定义一个数组对象
var ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2});
this.state = {
dataSource: ds.cloneWithRows(dataSource),
};