wx.onBluetoothAdapterStateChange 监听蓝牙打开或关闭 触发多次?
wx.onBluetoothAdapterStateChange(function (res) {
console.log(res.available);
if (res.available) {
去扫描蓝牙连接
}
wx.onBluetoothAdapterStateChange(function (res) {
console.log(res.available);
if (res.available) {
去扫描蓝牙连接
}