以下是给我一个非法令牌错误消息:
$('.navigation3').click(function(event) {
var $nav3 = $(this),
$dd = $nav3.next('.dropdown');
$nav3.toggleClass('active');
var leftoffset = $dd.width() - $nav3.width();
var offset = 20,
offsettop = $nav3.offset().top + $nav3.height() + offset,
offsetleft = $nav3.offset().left-leftoffset ;
$dd.css({
top: offsettop,
left: offsetleft
});
$nav3.hasClass('active') ? $dd.show() : $dd.hide();
});
它发生在最后});
。知道为什么吗?