假设table的id为tableContent
$(document).ready(function(){
$("#tableContent tr:even").addClass("evenClass");
$("#tableContent tr:odd").addClass("oddClass");
});
转载于:https://www.cnblogs.com/davidhhuan/archive/2010/04/21/1716982.html
假设table的id为tableContent
$(document).ready(function(){
$("#tableContent tr:even").addClass("evenClass");
$("#tableContent tr:odd").addClass("oddClass");
});
转载于:https://www.cnblogs.com/davidhhuan/archive/2010/04/21/1716982.html