内容来源于 Stack Overflow,并遵循CC BY-SA 3.0许可协议进行翻译与使用
我该怎么说
On Click .not.first() div alert('Yeah you clicked a div which is not the first one!');
我的实际代码:
this.$('thumbnails').children().click(function() { $('#video').animate({width: 164, height: 20, top: 475, marginLeft: 262},0) $('.flv').animate({left: 2222, opacity: '0'},0).css('display', 'none') $('.close').animate({opacity: '0'},0) clicked = 0 });
$(div).not(":first").click(function(){
alert("Yeah you clicked a div which is not the first one!);
});
$('thumbnails').children().not(":first").click(function() {
$('#video').animate({width: 164, height: 20, top: 475, marginLeft: 262},0)
$('.flv').animate({left: 2222, opacity: '0'},0).css('display', 'none')
$('.close').animate({opacity: '0'},0)
clicked = 0
});