$(document).ready(function(){
/* The following code is executed once the DOM is loaded */
$('.box-wrap').bind("click",function(){
$(this).find('.card').addClass('flipped').bind('click',function(){
$(this).removeClass('flipped');
});
});
return false;
});
如果我重新单击该 div 它可以工作,但是第二次单击另一个 div 整个脚本不起作用。控制台或错误中没有任何迹象。我是 jQuery 新手,无法弄清楚这一点。
$(this).find('.card').addClass('flipped').mouseleave(function(){
这段代码有效,但不是我要找的。请帮忙