同学们,我在jsp页面上用DWRUtil.addRows 方法显示服务器返回的列表数据,我想设置当鼠标移动到某个行时,该行颜色变为蓝色,当鼠标移开该行时,设置为没有颜色,但是我下面的配置怎么没有见效果呢? DWRUtil.removeAllRows("listData");
DWRUtil.addRows("listData", resultList, this.cellFuncs , {
rowCreator:function(options) {
var row = document.createElement("tr");
row.attachEvent('onmouseover', function(){this.style.background-color='blue';});
row.attachEvent('onmouseout', function(){this.style.background-color='';});
return row;
}}
);
哪位同学帮我找找看是什么原因啊?
DWRUtil.addRows("listData", resultList, this.cellFuncs , {
rowCreator:function(options) {
var row = document.createElement("tr");
row.attachEvent('onmouseover', function(){this.style.background-color='blue';});
row.attachEvent('onmouseout', function(){this.style.background-color='';});
return row;
}}
);
哪位同学帮我找找看是什么原因啊?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货