我正在尝试在淡入background-color时进行更改div,但以下代码不起作用。
相反,fadeOut当我试图这样click做时,它只是没有显示fadeIn.
$('#divbutton').toggle(function(){
$('#divbutton').text('Show');
$('#message').fadeOut('1000');
} ,
function(){
$('#divbutton').text('Hide');
$('#message').$this.css('background-color', 'red').fadeIn('1000');
}
);