验证是否有处理程序分配给指定事件
gantt.attachEvent("onTaskClick", function(id, e) { alert("你刚刚点击了id为="+id+"的项目"); }); gantt.checkEvent("onTaskClick"); //返回 'true'