Skip to content

Latest commit

 

History

History
58 lines (32 loc) · 1 KB

dom_aria.md

File metadata and controls

58 lines (32 loc) · 1 KB

@hubxu/utils / Exports / dom/aria

Module: dom/aria

Table of contents

Functions

Functions

attemptFocus

attemptFocus(element): boolean

将焦点设置为当前节点

Parameters

Name Type Description
element HTMLElement 要聚焦的元素

Returns

boolean

如果元素被聚焦,则为 true。

Defined in

src/dom/aria.ts:47


isFocusable

isFocusable(element): boolean

确定目标元素是否可聚焦

Parameters

Name Type Description
element HTMLElement 要聚焦的元素

Returns

boolean

如果元素可聚焦,则为 true。

Defined in

src/dom/aria.ts:6