根据单元格值,字体变色,js代码
var cell = contentPane.curLGP.getTDCell(1,1);
contentPane.curLGP.selectTDCell(cell);
var a=this.getValue();
var location = this.options.location; //获取当前控件的位置
var cr = FR.cellStr2ColumnRow(location);
var col = cr.col; //列号
var ro = cr.row; //行号
var b = FR.columnRow2CellStr({col: col, row: ro}); //获取当前单元格
if(a=="是"){
$("td[id^='"+b+"-0']").css("background","red");
}
else if(a=="否"){
$("td[id^='"+b+"-0']").css("background","grey");
}
else
{
$("td[id^='"+b+"-0']").css("background","white");
}
WorkBook478.rar