跳到主要内容

xml_date

警告

该属性已被弃用。

Description

定义用于从数据集解析数据以及向服务器发送数据的日期格式

Example

gantt.config.xml_date="%Y-%m-%d %H:%i";
...
gantt.init("gantt_here");
gantt.load("../data/tasks.json");

默认值: "%d-%m-%Y %H:%i"

Details

注释

属性 xml_date 已弃用。请改用 date_format 代替:

gantt.config.date_format = "%Y-%m-%d %H:%i";
...
gantt.init("gantt_here");
gantt.load("../data/tasks.json");

Change log

  • 自 v6.2 版本起已弃用,自 v7.0 版本起已移除

Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.