uni.openBluetoothAdapter({
success(res) {
console.log('初始化蓝牙成功')
console.log(res)
title.value = 'buletooth success';
},
fail(err) {
title.value = 'buletooth error';
console.log('初始化蓝牙失败')
console.error(err)
}
})
为什么我使用上面的代码会报方法不存在
TypeError: uni.openBluetoothAdapter is not a function
是不是还有什么配置要改?
1 个回复
YUANRJ
请详细阅读下文档,注意平台差异说明