通过判断是否为单数即可
然后设置下行的背景颜色就可以了
if(i%2==1) row.style.background = "#CCCCff";
else row.style.background = "#CCCCCC";