0

我需要从这个脚本中的选定类中排除一个链接。谁能告诉我如何排除带有 .logo 类的链接?查看主页链接的链接和徽标: 链接文本

$(document).ready(function() {


$('a.panel').click(function () {

    $('a.panel').removeClass('selected');
    $(this).addClass('selected');

    current = $(this);

    $('#wrapperQ').scrollTo($(this).attr('href'), 800);     

    return false;
});

$(window).resize(function () {
    resizePanel();
});

});
4

1 回答 1

0

尝试使用 not 功能。

$('a.panel').not('.logo').click(function () {
  ...
});
于 2010-09-09T16:09:54.967 回答