获取所有已发现的蓝牙设备 wx.getBluetoothDevices时报错

发布于 8 年前作者 ugao19313 次浏览最后编辑 8 年前来自 ask

Cannot read property ‘map’ of undefined…

onShow function api getBluetoothDevices success callback function

TypeError:Cannot read property ‘map’ of undefined

请高手指点

1 回复
cqian
cqian1 楼6 年前

getBluetoothDevices的成功回调函数中使用了没有定义的变量,检查一下map这个变量有没有定义