跳到主要内容

焦点事件(FocusEvent)

表示焦点变化事件(获得或失去焦点)。

字段(Fields)

hasFocus

hasFocus: boolean

如果元素获得焦点则为 true,失去焦点则为 false。