找回密码
 立即注册

QQ登录

只需一步,快速开始

右手微笑
金牌服务用户   /  发表于:2023-8-18 15:30  /   查看:741  /  回复:1
1金币
image.png951901855.png

如上图所示,选中undo栈中的某一项,撤销到这一项,这个有没有API

最佳答案

查看完整内容

这个目前没有直接的API可以做到,只能是通过getUndoStack接口或判断点击后选中了第几步操作,然后循环执行undo来实现。 https://demo.grapecity.com.cn/spreadjs/help/api/classes/GC.Spread.Commands.UndoManager#undo

1 个回复

倒序浏览
最佳答案
最佳答案
Joestar.XuSpreadJS 开发认证
超级版主   /  发表于:2023-8-18 15:30:57
来自 2#
这个目前没有直接的API可以做到,只能是通过getUndoStack接口或判断点击后选中了第几步操作,然后循环执行undo来实现。

https://demo.grapecity.com.cn/sp ... ds.UndoManager#undo
SpreadJS 17.0.10 | GcExcel 7.1.2 已发布~
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部