for (i = 0; i < len; i++) { var cr = FR.cellStr2ColumnRow("I3"); var ar =FR.cellStr2ColumnRow("K3"); _g().getWidgetByCell(FR.columnRow2CellStr({col:ar.col,row:i+ar.row})).setEnable(true); _g().getWidgetByCell(FR.columnRow2CellStr({col:cr.col,row:i+cr.row})).setEnable(true); } 以上会出现CustomJSError : Cannot read properties of undefined (reading 'setEnable')这个报错,而从问答区找到的加上setTimeout确实可以将JS往后跑,但这个设置控件可用的两行就无法作用了,我该怎麽改进呢 |