您好,经调研,您可以使用以下代码修复该问题:
- sheet.bind(GC.Spread.Sheets.Events.EditEnded, function (sender, args) {
- console.log(args);
- if (args.editingText[0] == " ") {
- sheet.setValue(
- sheet.getActiveRowIndex(),
- sheet.getActiveColumnIndex(),
- args.editingText.trim()
- );
- }
- });
复制代码 |