(function($) {
$.fn.stripeTable = function() {
this.find('tr:even').css('background-color', '#f00');
this.find('tr:odd').css('background-color', '#fff');
return this;
}
})(jQuery);
$(document).ready(function() {
$('#table').stripeTable();
});
jQuery语法如何实现表格隔行变色效果
(function($) { $.fn.stripeTable = function() { this.fin