Jquery查找表格最后一个TR的样式问题

我需要用jquery找到表格最后一个tr的css样式;

但是现在这段代码提示:undefined

求解决一下!万分感激!

[code="ruby"]

function findMore(){ var c=$("#tableList tr:last-child").attr('class'); alert(c); }
第一行
第二行
第三行

test
[/code]

[code="java"]var c=$("#tableList tr:last-child").attr('class');

[/code]
改为
var c=$("#tableList tr:last-child").css('class');