为什么这个html中可以加if else逻辑语句,这是怎么实现的
<tdalign="center">{if$var.borrow_status_nid=="loan"}<ahref="/invest/a{$var.borrow_nid...
<td align="center">
{if $var.borrow_status_nid == "loan"}
<a href="/invest/a{$var.borrow_nid}.html">
<span class="icon">马上投标</span></a>
{elseif $var.borrow_status_nid="first"}
<span class="icon_a">已 满 标</span>
{else} <span class="icon_a">已 满 标</span>
{/if}
</td> 展开
{if $var.borrow_status_nid == "loan"}
<a href="/invest/a{$var.borrow_nid}.html">
<span class="icon">马上投标</span></a>
{elseif $var.borrow_status_nid="first"}
<span class="icon_a">已 满 标</span>
{else} <span class="icon_a">已 满 标</span>
{/if}
</td> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询