此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。
This feature is not Baseline because it does not work in some of the most widely-used browsers.
WorkerNavigator.hid 只读属性返回一个 HID 对象,该对象提供访问 HID 设备连接的方法,以及当用户代理连接或断开设备时触发的事件。
如果已定义的权限策略阻止使用 WebHID,则 WorkerNavigator.hid 属性将不可用。
一个 HID 对象。
| Specification |
|---|
| WebHID API> # hid-attribute-0> |