HTML: Markup language
CSS: Styling language
JavaScript: Scripting language
Web APIs: Programming interfaces
All web technology
Learn web development
Discover our tools
Get to know MDN better
此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。
View in English Always switch to English
This feature is not Baseline because it does not work in some of the most widely-used browsers.
实验性: 这是一项实验性技术在将其用于生产之前,请仔细检查浏览器兼容性表格。
安全上下文: 此特性仅在一些支持的浏览器的安全上下文(HTTPS)中可用。
BluetoothRemoteGATTCharacteristic.readValue() 方法返回一个 Promise,其会兑现为一个包含 value 属性的副本(如果可用且受支持)的 DataView。否则它将抛出一个错误。
BluetoothRemoteGATTCharacteristic.readValue()
Promise
value
DataView
readValue()
无。
会兑现为 DataView 的 Promise。
Loading…