得到device对象name属性"4Vx",但是长度为4

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

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)

}

0 回复
暂无回复