6
4

2 回答 2

1

您可以选择并处理每个级别的点击,例如:

// first level links
$("ul#menu > li > a").click(function() {
    e.preventDefault();

    // show sub-menu etc..
}

// second level links (remove this block if you dont want any spl processing here)
$("ul#menu > li > ul > li > a").click(function() {
    return true; // behave like normal links
});
于 2012-11-06T13:30:23.177 回答
0
于 2012-11-06T13:50:09.043 回答