设置甘特图中日期、标题和tooltip的格式化templates
//定义表格中“开始时间”列显示日期的方式 gantt.templates.date_grid = function(date){ return gantt.date.str_to_date(gantt.config.date_grid); };
有关templates对象的详细信息,请参阅主API页面中专门的章节 “Gantt API: Templates”。