var location = this.options.location;
var cr = FR.cellStr2ColumnRow(location);
var col = cr.col;
var ro = cr.row;
// 获取下方一行的控件对象
var a = contentPane.getWidgetByCell(FR.columnRow2CellStr({col: col, row: ro + 1}));
// 判断a等于0时,禁用并清空控件
if (this.getValue() === "0") {
a.setEnable(false);
a.setValue("");
$("td[id^='"+a+"-0']").css("background-color","lightgray");
});
} else {
a.setEnable(true);
} 禁用、清空都生效了。 这一段修改背景色没生效,是什么原因呢? |