请问导航点击跳转后,选中状态怎么处理?子栏目如何判断
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" data-toggle="dropdown">
技能竞赛
</a>
<div class="dropdown-menu mt-0">
<a class="dropdown-item" href="zyds_index.html">全国职业院校</a>
<a class="dropdown-item" href="zzgs_index.html">省市级赛项</a>
<a class="dropdown-item" href="gzgs_index.html">行业赛</a>
</div>
</li>
<!--第一层:调用pid=0表示顶级--> {category module=share pid=0} <li class="nav-item dropdown {if IS_SHARE && $catid && in_array($catid, $t.catids)} active{/if}"> <a class="nav-link {if !empty($t.pids)} dropdown-toggle{/if}" href=" " {if $t.tid==2} target="_blank"{/if} id="navbarDropdown"> {$t.name} </ a> {if $t.child} <div class="dropdown-menu mt-0"> <!--第二层:调用第二级共享栏目--> {category module=share pid=$t.id return=t2} <a class="dropdown-item {if IS_SHARE && $catid && in_array($catid, $t2.catids)} active{/if}" href="{$t2.url}"><span class="iconfont">{html_entity_decode($t2.tubiao)}</span>{$t2.name}</ a> {/category} </div> {/if} </li> {/category}