parse
Description
处理从客户端资源加载数据
parse: (data: any) => void
Parameters
data- (required) object - 一个包含数据的字符串或对象
Example
scheduler.parse([
{ start_date:"2020-05-13 6:00", end_date:"2020-05-13 8:00", text:"Event 1"},
{ start_date:"2020-06-09 6:00", end_date:"2020-06-09 8:00", text:"Event 2"}
]);
Related samples
Details
迁移说明
从版本 5.2 开始,scheduler 会自动识别数据格式。
在早期版本(5.2 之前),该方法接受两个参数:
- data - (object) 包含数据的字符串或对象;
- type - (string) 可选,('json', 'xml', 'ical') 指定数据类型。默认值为 'xml'
Related API
Related Guides
Change log
- 第二个 type 参数在版本 5.2 中被移除。
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.