跳转到主要内容

getState

Description

获取调度器的当前状态

getState: () => any

Returns

  • state - (object) - 状态对象

Example

var mode = scheduler.getState().mode;  
if(mode == "day"){
// 在此处编写自定义逻辑
}
else {
// 在此处编写自定义逻辑
}

Details

状态对象表示调度器的内部UI配置,包含以下属性:

注释

注意,修改此对象不会影响调度器的行为。

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.