if判断
phpcms吧
全部回复
仅看楼主
level 1
qq381216002 楼主
{if $r[catid==9]} class="icon meue-icon" {elseif $r[catid==15]} class="icon my-icon" {else} class="icon kefu-icon" {/if} 为什么到最后显示的都是kefu-icon呢 求指教
2016年04月05日 11点04分 1
level 11
你这样写不对的,你应该把$r[catid==9]改成$r[catid]==9,下面的15也是,你试试吧。
2016年04月05日 14点04分 2
1