8.Smarty的条件判断语句的写法


{if $newObj eq 'a'}
    welcome a
    {elseif $a eq 'b'}
    welcome b
    {else}
    welcome others
{/if}
原文地址:https://www.cnblogs.com/caimuqing/p/5685560.html