在操作被推入撤销栈之前触发。
gantt.attachEvent("onBeforeUndoStack",function(action){ // 在这里编写你的代码 return true; });
此事件属于undo扩展的一部分,因此请确保已启用 undo 插件。更多信息请参见 撤销/重做功能 文章。
版本 5.2 中新增