在数据展示到页面之前触发
gantt.attachEvent("onBeforeDataRender", function(){ ////这里可以添加任何自定义逻辑 }); gantt.init("gantt_here"); gantt.parse(demo_tasks);