/**
* 表格隔行变色
*/
function changeTrColor() {
var tbody = document.getElementsByTagName("tbody");
for (var i = 0; i < tbody.length; i++) {
var trList = tbody[i].children;
for (var j = 0; j < trList.length; j++) {
if (j % 2 == 0) {
trList[j].style.backgroundColor = "#ef9";
} else {
trList[j].style.backgroundColor = "#ffc";
}
}
}
}
671



被折叠的 条评论
为什么被折叠?



