1
如果Box没有动画并且显示值为none,或者fadeOut,如果#Box有显示,当class =“display”被点击时,此函数应该淡入id =“Box”价值不是无。哪里不对?Jquery淡入淡出脚本不起作用
$(document).ready(function() {
$('.display').click(function() {
var currentDisplayValue = $('#Box').css('display');
if (':animated') {
stop()
};
else if (currentDisplayValue == 'none') {
$('#Box').fadeIn("slow");
};
else {
$('#Box').fadeOut("slow");
};
});
感谢