日期:2014-05-16  浏览次数:20358 次

谁能帮帮我把这段代码由mootools转成jq的?
这段代码其实是用来高亮导航和显示子菜单的:
html代码结构大概如下:

<ul class="GoodsDropNavs">
    <li class="n-cat-depth-1 nobg">
        <a class="depth-1" href="./">
            <em>
                首页
            </em>
        </a>
    </li>
    <li class="n-cat-depth-1">
        <a class="depth-1" href="/browse/category-16.html">
            <em>
                童装
            </em>
        </a>
        <table cellpadding="0" cellspacing="0" border="0" class="n-cat-popup"
        style="display:none;">
            <tr>
                <td class="n-cat-drop-2">
                    <ul>
                        <li class="n-cat-depth-0">
                            <span>
                                功能分类
                            </span>
                        </li>
                        <li>
                            <a href="/browse/category-26.html">