為什么不能用css()
<javascript?type="text/javascript">
$('#t1?tr').click(function(){
?$(this).style.color='red';
});
</javascript>我想把style.color='red'改為this.css("background-color","red");為什么沒有反應呢?感覺有些懵,哪位大神幫忙下
<javascript?type="text/javascript">
$('#t1?tr').click(function(){
?$(this).style.color='red';
});
</javascript>我想把style.color='red'改為this.css("background-color","red");為什么沒有反應呢?感覺有些懵,哪位大神幫忙下
2017-06-12
舉報
2017-06-12
jq引的有問題吧