onLoadSuccess: function () {
var myTable = document.getElementById(“gridTable”);
if (myTable.rows[1].cells[1] != undefined) {
for (var i = 1; i < myTable.rows.length; i++) {
let td = myTable.rows[i].querySelectorAll(“td”);
for (let j = 0; j < td.length; j++) {
if (myTable.rows[i].cells[j].innerHTML.search(“NG”) != -1) {
myTable.rows[i].cells[j].style.background = “#B00000”;
myTable.rows[i].cells[j].style.color = “white”;
}
}
}
}
}
版权声明:本文为m0_60315436原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。