實現有多個圖片的遍歷顯示react

如圖要想實現這個效果,首先這些圖片是存儲在一個數組中的,咱們要取出圖片而後遍歷顯示出來,能夠以下顯示:數組 render : ( text) => { if ( text && text. length) { const imgs = text. map(( item, index) => < div key= { index } style= {{ backgroundImage: `url(
相關文章
相關標籤/搜索