怎么在列表渲染中渲染对应信息?

小程序 文章 2022-01-05 09:20 321 0 全屏看文

AI助手支持GPT4.0

怎么在列表渲染中渲染对应信息?How to render the corresponding information in the list rendering?

怎么在列表渲染中渲染对应信息?

想要的效果就是每一块都只显示对应的星星,但是不知道怎么写好……渲染出来就变成了一整列

The desired effect is that each piece only displays the corresponding stars, but I don't know how to write it... It will be rendered into a whole column

回答:

微喵网络:

星星为什么循环?

困难:

你这个星星是收藏的意思?每个书只有一个星星吧?为什么要用for循环?

云之道:

样式的话,用flex布局,另外你想实现收藏还是实现显示作品评分

-EOF-

AI助手支持GPT4.0