标签:三元 输出 class eal 判断 cer status pre tag
status === 1 ? <div class="article-card-tag article-tag-real">确认属实</div> : status === 2 ?
<div class="article-card-tag article-tag-fake">谣言</div> :
status === 3 ?
<div class="article-card-tag article-tag-uncertain">尚无定论</div> :
<div class="article-card-tag article-tag-real">确认属实</div>
输出结果:
条件=1:确认属实
条件=2:谣言
条件=3:尚无定论
标签:三元 输出 class eal 判断 cer status pre tag
原文地址:https://www.cnblogs.com/shine1234/p/13259915.html