跳到主要内容

serialize

Description

将数据序列化为 JSON 或 XML 格式

serialize: (type?: string) => any

Parameters

  • type - (optional) string - 将数据序列化为的格式。
    可能的取值:'json' (default ), 'xml'.

Returns

  • data - (object) - 一个甘ett图数据对象

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.