9版本的用法:
GcSpread.Sheets.SpreadActions.copy.call(sheet);#复制
GcSpread.Sheets.SpreadActions.cut.call(sheet);#剪切
GcSpread.Sheets.SpreadActions.paste.call(sheet);#粘贴
12版本的用法:
spreadtemp.commandManager().execute({cmd:"copy",sheetName:activeSheet.name()});#复制
spreadtemp.commandManager().execute({cmd:"paste",sheetName:activeSheet.name()});#粘贴
使用语句12版本的语句,从一个单元格拷贝并粘贴到同一个sheet的不同单元格,不起作用。
|
|