WorkBook104.zipvar location = this.options.location; //获取当前控件的位置 var cr = FR.cellStr2ColumnRow(location); var col = cr.col; //列号 var ro = cr.row; //行号 var valueText=this.getText() var rq=FR.remoteEvaluate("LEN(value('大额收支',1,2,'"+valueText+"'))<>0"); if(rq){ valueText="" }else{ valueText="新增数据" } contentPane.setCellValue(0, col+7, ro,valueText); alert(this.getText());