三元运算

<p>{{scope.row.type==0?'充值' : scope.row.type==1?'退款': scope.row.type==2?'消费':'补款'}}</p>

tab_index == 0 ? ppInfoList : (tab_index == 1 ? kcInfoList : wdInfoList)

 

posted @ 2021-12-29 14:26  前端小强166  阅读(18)  评论(0)    收藏  举报