定義一個(gè)數(shù)組也搓,包含兩條以上數(shù)據(jù)声登,格式如下:
let dataSource=[{"userna":"張三","tranti":"08月03日 15:36:11"},
{"userna":"李四","tranti":"07月29日 17:36:11"}];
Warning! dataSource是數(shù)組,32行應(yīng)該是
this.state = {? dataSource:this.ds.cloneWithRows(dataSource),
return頁(yè)面應(yīng)該