uniapp中:
<text :class="style(item)">文字</text>
解决方案:给方法加上中括号 [ ]
<text :class="[style(item)]">文字</text>
uniapp中:
<text :class="style(item)">文字</text>
解决方案:给方法加上中括号 [ ]
<text :class="[style(item)]">文字</text>
2172

被折叠的 条评论
为什么被折叠?