我想更改CustomerID背景颜色(如果它为空)。为什么td(CustomerID)背景颜色不变
<table width="200px" border="0" cellspacing="1" cellpadding="1">
<tr>
<td id="CustomerID"></td>
<td id="GroupID"></td>
</tr>
</table>
if($("#CustomerID").text().trim() == "")
{
$("#CustomerID").css("background-color","yellow");
}
“J” 在 “if” 语句的第一行的结束? – Johannes