个人案例
- 配置普通链接二维码时,总是提示“不可配置此规则“。而用PC访问则正常。请问原因是什么?
APPID wx45caf73ed5dc9d71 [图片]
2021-08-22 - 系统创建的云环境如何进入shell命令行窗口?
如题
2021-07-01 - unable to evaluate symlinks in Dockerfile path ?
[图片]
2021-07-01 - 请问这个tenpay,微信官方认可吗?
https://github.com/befinal/node-tenpay#readme 用这个第三方平台,资金的安全性会有问题吗
2021-03-08 - getBluetoothDevices 始终找不到蓝牙设备,返回结果空。请问是什么原因?
微信开发者工具: stable 1.03.2101150。 手机: 华为 FRD AL10 微信8.0,已经开启位置信息。手机蓝牙搜索周围设备功能正常。但就是用小程序搜索不到周边的蓝牙设备 [图片] wx.closeBluetoothAdapter({ complete: (res) => { console.log("已经关闭蓝牙模块") }, }) wx.openBluetoothAdapter({ success: function(res) { console.log(res,"连接蓝牙成功") }, fail: function(res) { console.log("连接蓝牙失败") }, }) //第二步:搜索附近蓝牙,并获取蓝牙列表 wx.startBluetoothDevicesDiscovery({ success: function(res) { / 获取蓝牙设备列表 / console.log("获取蓝牙列表成功!") setTimeout(() => { wx.startBluetoothDevicesDiscovery({ allowDuplicatesKey: true, }) }, 10000); console.log(res) }, fail: function(res) { console.log("获取蓝牙列表失败!") } }) //第三步:选中列表中蓝牙设备,连接蓝牙设备 wx.getBluetoothDevices({ success: function (res) { console.log("得到蓝牙设备!") console.log(res) i=0; while (res.devices[i]) { console.log(i); console.log(res.devices[i].name,res.devices[i].deviceId); if(res.devices[i].name=='Printer001'){ deviceId=res.devices[i].deviceId; console.log(deviceId); } i++; } } })
2021-02-07