[重要]列表录入数据

[重要]列表录入数据_第1张图片

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),

};

[重要]列表录入数据_第2张图片

你可能感兴趣的:([重要]列表录入数据)