这是
实验性技术
检查
浏览器兼容性表格
要小心谨慎在生产中使用这之前。
deviceProtocol
read only property of the
USBDevice
interface one of three properties that identify USB devices for the purpose of loading a USB driver that will work with that device. The other two properties are
USBDevice.deviceClass
and
USBDevice.deviceSubclass
.
var number = USBDevice.deviceProtocol
A number.
| 规范 | 状态 | 注释 |
|---|---|---|
|
WebUSB
The definition of 'deviceProtocol' in that specification. |
草案 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
deviceProtocol
|
Chrome 61 | Edge 79 | Firefox No | IE No | Opera 48 | Safari No | WebView Android No | Chrome Android 61 | Firefox Android No | Opera Android 45 | Safari iOS No | Samsung Internet Android 8.0 |
完整支持
不支持
实验。期望将来行为有所改变。