我有这个代码
$('#downvotebutton').click(function() {
$(this).css('background-color', 'red !important');
console.log('foo');
//more
Run Code Online (Sandbox Code Playgroud)
单击downvotebutton时,'foo'将返回到控制台,但背景颜色不会更改.jQuery链接到页面的其他地方并在其他地方工作.可能是什么原因?