摘要: 通过返回函数,判断参数内容。 <view class="item" :style="{'background':cardBg(index)}" </view> computed: { cardBg() { return function(index) { switch (index) { case 阅读全文
posted @ 2021-11-10 21:53 峻宇 阅读(524) 评论(0) 推荐(0) 编辑