-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[zh-cn]: sync content for navagator hid (#24366)
- Loading branch information
Showing
2 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
title: WorkerNavigator:hid 属性 | ||
slug: Web/API/WorkerNavigator/hid | ||
l10n: | ||
sourceCommit: 534e2c61fee576355e8a9b7036d9fa36056edb03 | ||
--- | ||
|
||
{{APIRef("WebHID API")}}{{SeeCompatTable}}{{SecureContext_Header}} | ||
|
||
**`WorkerNavigator.hid`** 只读属性返回一个 {{domxref("HID")}} 对象,该对象提供访问 HID 设备连接的方法,以及当用户代理连接或断开设备时触发的事件。 | ||
|
||
如果已定义的[权限策略](/zh-CN/docs/Web/HTTP/Permissions_Policy)阻止使用 WebHID,则 `WorkerNavigator.hid` 属性将不可用。 | ||
|
||
## 值 | ||
|
||
一个 {{domxref("HID")}} 对象。 | ||
|
||
## 规范 | ||
|
||
{{Specifications}} | ||
|
||
## 浏览器兼容性 | ||
|
||
{{Compat}} | ||
|
||
## 参见 | ||
|
||
- [WebHID API](/zh-CN/docs/Web/API/WebHID_API) |