得到device对象name属性"4Vx",但是长度为4
发布于 6 年前 作者 chaolong 1511 次浏览 来自 问答

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)

}

回到顶部