表格隔行换色效果

$("tr").each(function(i){this.style.backgroundColor=['#ccc','#fff'][i%2]})

原文地址:https://www.cnblogs.com/Cuiy/p/3282423.html