您好,通过设置EditorValueType 为 Value
- var cellType2 = new GcSpread.Sheets.ComboBoxCellType();
- cellType2.items([{text:"A",value:0},{text:"B",value:1},{text:"C",value:22}]);
- cellType2.editorValueType(GcSpread.Sheets.EditorValueType.Value);
- sheet.getCell(2, 2).cellType(cellType2);
- sheet.setValue(2,2,22)
复制代码 |