안녕하세요, 내 UI에 표시하려는 데이터가 있습니다. 나는 리튬의JSX에서 데이터를 반복하는 방법
내가 주변에 내 머리를 정리하지 못할 jsx내부 루프 수 있도록하고 싶습니다
, 너희들이 내게 줄 수에 ProductTypeID 및 ProductTypeName의 데이터를 시도하고 표시 루프를 할 수 있도록하려면 힌트? 나는 데이터를 다루는 것이 좋지 않고 tru를 반복한다.
[{
"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
}]
두 답변이 모두 정확하고 JSX의 실제 데이터를 매핑하는 방법을 이해하는 데 도움이되었습니다. 감사합니다. Alexey Pedyashev – user1780729