关于蓝牙搜索设备
得到的name为‘4Vx’但是长度一直显示4
getBluetoothDevices:function(){
let that = this;
wx.getBluetoothDevices({
success: function (res4) {
console.log(res4);
for (let item of res4.devices) {
console.log(item.name.trim())
console.log(item.name.trim().length)
}