smarty的ifelse使用,待
时间:2021-07-01 10:21:17
帮助过:25人阅读
smarty的if else 使用,在线等待
{|if $status eq "1"|}
{|else if $status eq "2"|}
{|else|}
{|/if|}
这么写有什么错误么?
感谢之至!
------解决方案--------------------
这样简单点
------解决方案--------------------
{|if $status eq "1"|}
{|elseif $status eq "2"|}
{|else|}
{|/if|}
smarty的elseif不能分开写