utils.aria 命名空间
枚举
Enumeration | 说明 |
---|---|
Role | ARIA 角色值。从 Closure 的 goog.a11y.aria.Role 中复制 |
状态 | ARIA 状态和属性。从 Closure 的 goog.a11y.aria.State 复制 |
函数
功能 | 说明 |
---|---|
setRole(element, roleName) | 设置元素的角色。 类似于 Closure 的 goog.a11y.aria |
setState(element, stateName, value) | 设置元素的状态或属性。从 Closure 的 goog.a11y.aria 中复制 |