• Skip to main content
  • Skip to search
  • Skip to select language
MDN Web Docs
  • References
    • Overview / Web Technology

      Web technology reference for developers

    • HTML

      Structure of content on the web

    • CSS

      Code used to describe document style

    • JavaScript

      General-purpose scripting language

    • HTTP

      Protocol for transmitting web resources

    • Web APIs

      Interfaces for building web applications

    • Web Extensions

      Developing extensions for web browsers

    • Accessibility

      Build web projects usable for all

    • Web Technology

      Web technology reference for developers

  • Learn
    • Overview / MDN Learning Area

      Learn web development

    • MDN Learning Area

      Learn web development

    • HTML

      Learn to structure web content with HTML

    • CSS

      Learn to style content using CSS

    • JavaScript

      Learn to run scripts in the browser

    • Accessibility

      Learn to make the web accessible to all

  • Plus
    • Overview

      A customized MDN experience

    • AI Help

      Get real-time assistance and support

    • Updates

      All browser compatibility updates at a glance

    • Documentation

      Learn how to use MDN Plus

    • FAQ

      Frequently asked questions about MDN Plus

  • Curriculum New
  • Blog
    • Playground

      Write, test and share your code

    • HTTP Observatory

      Scan a website for free

    • AI Help

      Get real-time assistance and support

  • Log in
  • Sign up for free
  1. 面向开发者的 Web 技术
  2. Web API
  3. Navigator
  4. Navigator:usb 属性
    • English (US)
    • Deutsch
    • 日本語

此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

在本文中

  • 值
  • 规范
  • 浏览器兼容性
  • 参见
  1. WebUSB API 实验性
  2. Navigator
  3. 实例属性
    1. activeVRDisplays 非标准 已弃用
    2. appCodeName 已弃用
    3. appName 已弃用
    4. appVersion 已弃用
    5. bluetooth 实验性
    6. buildID 非标准
    7. clipboard
    8. connection
    9. contacts 实验性
    10. cookieEnabled
    11. credentials
    12. deviceMemory
    13. devicePosture 实验性
    14. doNotTrack 非标准 已弃用
    15. geolocation
    16. globalPrivacyControl 实验性
    17. gpu 实验性
    18. hardwareConcurrency
    19. hid 实验性
    20. ink 实验性
    21. keyboard 实验性
    22. language
    23. languages
    24. locks
    25. login
    26. maxTouchPoints
    27. mediaCapabilities
    28. mediaDevices
    29. mediaSession
    30. mimeTypes 已弃用
    31. onLine
    32. oscpu 已弃用
    33. pdfViewerEnabled
    34. permissions
    35. platform 已弃用
    36. plugins 已弃用
    37. presentation
    38. product 已弃用
    39. productSub 已弃用
    40. scheduling 实验性
    41. serial 实验性
    42. serviceWorker
    43. storage
    44. usb
    45. userActivation
    46. userAgent
    47. userAgentData 实验性
    48. vendor 已弃用
    49. vendorSub 已弃用
    50. virtualKeyboard 实验性
    51. wakeLock
    52. webdriver
    53. windowControlsOverlay
    54. xr 实验性
  4. 实例方法
    1. canShare()
    2. clearAppBadge()
    3. deprecatedReplaceInURN() 实验性
    4. getAutoplayPolicy() 实验性
    5. getBattery()
    6. getGamepads()
    7. getInstalledRelatedApps() 实验性
    8. getUserMedia() 已弃用
    9. getVRDisplays() 非标准 已弃用
    10. javaEnabled() 已弃用
    11. registerProtocolHandler()
    12. requestMediaKeySystemAccess()
    13. requestMIDIAccess()
    14. sendBeacon()
    15. setAppBadge()
    16. share()
    17. taintEnabled() 已弃用
    18. unregisterProtocolHandler()
    19. vibrate()
  5. WebUSB API 的相关页面
    1. Navigator.usb
    2. USB 实验性
    3. USBAlternateInterface 实验性
    4. USBConfiguration 实验性
    5. USBConnectionEvent 实验性
    6. USBDevice 实验性
    7. USBEndpoint 实验性
    8. USBInTransferResult 实验性
    9. USBInterface 实验性
    10. USBIsochronousInTransferPacket 实验性
    11. USBIsochronousInTransferResult 实验性
    12. USBIsochronousOutTransferPacket 实验性
    13. USBIsochronousOutTransferResult 实验性
    14. USBOutTransferResult 实验性
    15. WorkerNavigator.usb

在本文中

  • 值
  • 规范
  • 浏览器兼容性
  • 参见

Navigator:usb 属性

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

  • Learn more
  • See full compatibility
  • Report feedback

安全上下文: 此项功能仅在一些支持的浏览器的安全上下文(HTTPS)中可用。

Navigator 接口的 usb 只读属性返回当前文档的 USB 对象,用于访问 WebUSB API 的功能。

值

一个 USB 对象。

规范

Specification
WebUSB API
# dom-navigator-usb

浏览器兼容性

参见

  • WebUSB API

Help improve MDN

Learn how to contribute.

This page was last modified on 2024年4月7日 by MDN contributors.

View this page on GitHub • Report a problem with this content
MDN logo

Your blueprint for a better internet.

  • MDN on Bluesky
  • MDN on Mastodon
  • MDN on X (formerly Twitter)
  • MDN on GitHub
  • MDN Blog RSS Feed

MDN

  • About
  • Blog
  • Careers
  • Advertise with us

Support

  • Product help
  • Report an issue

Our communities

  • MDN Community
  • MDN Forum
  • MDN Chat

Developers

  • Web Technologies
  • Learn Web Development
  • MDN Plus
  • Hacks Blog
  • Website Privacy Notice
  • Cookies
  • Legal
  • Community Participation Guidelines

Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2025 by individual mozilla.org contributors. Content available under a Creative Commons license.

OSZAR »