甘特图 API方法clearAll页面内容clearAll Description 从甘特图中移除所有任务及附加元素(包括标记) clearAll: () => voidExample// 重新加载甘特图中的数据gantt.load("url1");gantt.clearAll(); /*!*/gantt.load("url2");/*!*/Details注意,该方法将触发 onClear 事件。Related API onClear Related Guides Basic Operations with Tasks 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.