{pboot:if(‘[nav:scode]’=='{sort:scode}’ || ‘[nav:scode]’=='{sort:pcode}’)}class=”active”{/pboot:if}

效果如下