<div class="index"
:class="row.data.index == 01 ? 'first' :
(row.data.index == 02 ? 'second':(row.data.index == 03 ? 'third':'normal'))"
>
{
{
row.data.index}}
</div>
三元运算符、三目运算符、判断四层、判断多层
猜你喜欢
转载自blog.csdn.net/weixin_43131046/article/details/121116745
今日推荐
周排行