简短的问题:
$(document).ready(function(){
$('.flash-notice .close').click(function(e){
$('.flash-notice').fadeOut(250);
e.preventDefault();
});
$('.flash-notice').delay(3000,).fadeOut(1000);
当我单击 Flash Notice 的 .close 元素时,没有任何反应。它只是在 3 秒后消失。如果我再次显示它并再次单击 .close ,它可以工作。
我想在盒子已经关闭时尝试关闭盒子有点搞砸了。
我该如何解决?
谢谢!