聯(lián)系官方銷售客服
1835022288
028-61286886
{category module=share pid=0 id=1 return=c1} {category module=share pid=$c1.id return=c2} <li class="layui-this">{$c2.name}{$c2.catids}</li> {/category} {/category}
請問這個代碼中怎么樣判斷第一個子級欄目,因為用 layui的TAB菜單 現(xiàn)在想默認是第一個有l(wèi)ayui-this的屬性
官方提醒:使用category欄目循環(huán)標簽的生成工具,填寫參數(shù)就可以生成相關(guān)的代碼,每個參數(shù)后面都有用法解釋
參考文檔:《循環(huán)計數(shù)變量》