跳转到主要内容

defined

Description

当参数为 undefined 时返回 false;否则返回 true

defined: (event: any) => boolean

Parameters

  • event - (required) object - 要检查的对象

Returns

  • state - (boolean) - 参数为 undefined 时返回 false,否则返回 true

Example

// 检查 event 对象是否定义了 "custom_property" 属性
if(scheduler.defined(event.custom_property)){
// ..
};

Change log

  • added in version 6.0
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.