我正在寻找一种方式来.preventDefault()做一个过渡,然后允许默认行为是否可以颠倒e.preventDefault()?
$('.withTrans').click(function(e){
e.preventDeault();
$(this).animate('opacity','0',300,function(){
e.resumeDefault(); // does something like this exist?
});
})
看到这个:http://stackoverflow.com/questions/1238477/suspend-default-event-in-jquery – 2012-03-04 15:29:52
没有内置的功能。当动画结束时,事件处理也可能已经完成。 – 2012-03-04 15:31:18