跳到主要内容

serialize

Description

将数据转换为 JSON 或 XML 格式

serialize: (type?: string) => any

Parameters

  • type - (optional) string - 指定序列化的格式。
    可选值:'json'(默认),'xml'。

Returns

  • data - (object) - 返回一个 gantt 数据对象

Example

gantt.serialize('xml');
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.