【发布时间】:2016-08-29 13:45:11
【问题描述】:
您好,我想在 UI 中显示这些数据。 我希望能够循环尝试数据并在 li 中显示 ProductTypeID 和 ProductTypeName
我希望能够在 jsx 中循环
我无法理解它,你们能给我一个提示吗?我不太擅长处理数据并循环使用它。
[{
"ProductTypeID": 14,
"ProductTypeName": "ItemName1",
"ProductTypeImageUrl": "",
"ProductTypeThumbUrl": "",
"ProductTypeIconUrl": "",
"IsActive": 1,
"ProductTypeBlueImage": null,
"Is3HourRent": null
}, {
"ProductTypeID": 1,
"ProductTypeName": ItemName2",
"ProductTypeImageUrl": "",
"ProductTypeThumbUrl": "",
"ProductTypeIconUrl": "",
"IsActive": 1,
"ProductTypeBlueImage": null,
"Is3HourRent": false
}, {
"ProductTypeID": 10,
"ProductTypeName": "ItemName3",
"ProductTypeImageUrl": "",
"ProductTypeThumbUrl": "",
"ProductTypeIconUrl": "",
"IsActive": 1,
"ProductTypeBlueImage": null,
"Is3HourRent": true
}]
【问题讨论】:
标签: javascript reactjs ecmascript-6 jsx