<script type="text/javascript">
$(function(){
$("#tableName tr:nth-child(even)").addClass("trOdd");
})
</script>
<script type="text/javascript">
$(function(){
$("#tableName tr:nth-child(even)").addClass("trOdd");
})
</script>
转载于:https://www.cnblogs.com/snowhite/p/4908821.html