行:
<tr id="data_${stat.index}" class="main_trbg" align="center">
Js:
/** 给数据行绑定鼠标覆盖以及鼠标移开事件 */ $("tr[id^='data_']").hover(function(){ $(this).css("backgroundColor","#eeccff"); },function(){ $(this).css("backgroundColor","#ffffff"); })
行:
<tr id="data_${stat.index}" class="main_trbg" align="center">
Js:
/** 给数据行绑定鼠标覆盖以及鼠标移开事件 */ $("tr[id^='data_']").hover(function(){ $(this).css("backgroundColor","#eeccff"); },function(){ $(this).css("backgroundColor","#ffffff"); })