$iterator = 1; $home_url = ''; // 后台首页url foreach($menu as $menu_1_name => $menu_2) { style="display:none;"> foreach($menu_2 as $menu_2_name => $menu_3) { {$menu_2_name} ++ $iterator; foreach($menu_3 as $menu_3_name => $menu_3_url) { $home_url = empty($home_url) ? $menu_3_url : $home_url; {$menu_3_name} ++ $iterator; } if($menu_1_name=='index'){ 宝贝一级分类 ++ $iterator; 宝贝二级分类 ++ $iterator; 宝贝标签 ++ $iterator; } } } |