甘特图 API方法serialize页面内容serialize Description 将数据序列化为 JSON 或 XML 格式 serialize: (type?: string) => anyParameters type - (optional) string - 将数据序列化为的格式。 可能的取值:'json' (default ), 'xml'. Returns data - (object) - 一个甘ett图数据对象 Examplegantt.serialize('xml');Related API parse Related Guides 将数据序列化为 XML 和 JSON 支持的数据格式 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.