Uniapp Vue 中v-if判断class

 

 

 

如果是true运行问好后面的,如果false运行‘’

        
                <view class="recharge_head_li center"  :class="totalIn>0  && totalIn<30 ? 'chs':''" @click="" v-for="" :key="">
                    <text>0-30</text>
                </view>

 

posted @ 2023-01-14 11:38  79524795  阅读(915)  评论(0编辑  收藏  举报