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


{if $newObj eq 'a'}
    welcome a
    {elseif $a eq 'b'}
    welcome b
    {else}
    welcome others
{/if}

 

posted @ 2016-07-19 17:12  笨蛋敏  阅读(299)  评论(0编辑  收藏  举报