在11的fr上面使用contentPane报错,查阅官方文档提示这个方法好像不行了,需要用_g().来获取,以下是现在的代码,要怎么调整 var location = this.options.location; //获取当前控件的位置 var cr = FR.cellStr2ColumnRow(location); var col = cr.col; //列号 var ro = cr.row; //行号 //console.log(col+','+ro); var va=this.getValue(); //console.log(va); var fls=contentPane.getCellValue(0,5,ro); //console.log(fls); if (va==fls){ contentPane.getRow(ro+1).setStyle({ background: '#38E156' }); }else { FR.Msg.confirm("提示", "确认", function(value) { if (value == true) { contentPane.getRow(ro+1).setStyle({ background: '#D8FA3F' }); }else { contentPane.setCellValue(0,6,ro,""); contentPane.getRow(ro+1).setStyle({ background: '#3DA028' }); } }, 100); |