我这样做,当我点击主要类别(集合)时,子菜单仍然有效,而如果我点击另一个链接,因为联系人子菜单消失,老实说我不知道如何去做这个我请求你的帮助谢谢
谢谢大家的帮助
// init Super Fish Menu for 767px+ resolution
function desktopInit()
{
mCategoryGrover.off();
mCategoryGrover.removeClass('active');
$('.sf-menu > li > ul').removeClass('menu-mobile').parent().find('.menu-mobile-grover').remove();
$('.sf-menu').removeAttr('style');
categoryMenu.superfish('init');
//add class for width define
$('.sf-menu > li > ul').addClass('submenu-container clearfix');
// loop through each sublist under each top list item
$('.sf-menu > li > ul').each(function(){
i = 0;
//add classes for clearing
$(this).each(function(){
if ($(this).attr('id') != "category-thumbnail"){
i++;
if(i % 2 == 1)
$(this).addClass('first-in-line-xs');
else if (i % 5 == 1)
$(this).addClass('first-in-line-lg');
}
});
});
}

ul class="sf-menu clearfix menu-content sf-js-enabled sf-arrows">
<li><a href="/" title="Home">Home</a></li>
<li><a href="/" title="Biography">Biography</a></li>
<li class="sfHoverForce"><a href="/index.php?id_category=49&controller=category&id_lang=1" title="Collection" class="sf-with-ul">Collection</a><ul class="submenu-container clearfix first-in-line-xs" style="display: none;">
<li><a href="/index.php?id_category=63&controller=category&id_lang=1" title="Consolle">Consolle</a></li>
<li class=""><a href="web.com/index.php?id_category=66&controller=category&id_lang=1" title="Cabinetes">Cabinetes</a></li>
<li><a href="/index.php?id_category=64&controller=category&id_lang=1" title="Bookstores Screens">Bookstores Screens</a></li>
<li><a href="/index.php?id_category=50&controller=category&id_lang=1" title="Tables">Tables</a></li>
<li><a href="/index.php?id_category=55&controller=category&id_lang=1" title="Seating">Seating</a></li>
<li><a href="/index.php?id_category=59&controller=category&id_lang=1" title="LIGHTING ">LIGHTING </a></li>
<li><a href="/index.php?id_category=65&controller=category&id_lang=1" title="Mirrors">Mirrors</a></li>
<li><a href="/index.php?id_category=67&controller=category&id_lang=1" title="Accessories">Accessories</a></li></ul>
&#13;