我正在尝试在另一张地图中制作一张地图,但它似乎与我的要求相反。我想模仿每个地图彼此相邻,例如:
A = B
A.1 = B.1
A.2 = B.2
等等,但是,我得到了
A = B
A = B.1
A = B.2
A.1 = B
A.1 = B.1
A.1 = B.2
等等..这是我的代码:
{titles.map((t, index) => (
<tr>
{console.log(this.state)}
<td key={index}>{t.toString() + " : "}</td>
<td>{this.state.files.map((x, index) => (
<div key={index} style={{color:'#01579b', cursor: 'pointer', border: '1px ridge'}}
key={`link${index}`}
onClick={this.downloadFile.bind(null,x)}>{x.original_name}
</div>
))}
</td>
</tr>
))}
胡说叔叔
相关分类