当通过 destructor 方法清除甘特图后触发一次
gantt.attachEvent("onDestroy", function(){ alert("释放自定义资源"); }); gantt.destructor();