此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。
This feature is not Baseline because it does not work in some of the most widely-used browsers.
BluetoothRemoteGATTCharacteristic.readValue() 方法返回一个 Promise,其会兑现为一个包含 value 属性的副本(如果可用且受支持)的 DataView。否则它将抛出一个错误。
readValue()
无。
| Specification |
|---|
| Web Bluetooth> # dom-bluetoothremotegattcharacteristic-readvalue> |