- 微信开发者工具的console中,gb2312", 编码问题?
微信开发者工具中,在console中,执行(new TextEncoder("gb2312").encode('监督意见:'),返回的编码怎么是utf-8呢? 微信开发者工具版本:Stable 1.06.2409140 操作系统:win8.1
2024-12-26 - 如何设置wx.openSetting页面上方的字
如何设置wx.openSetting页面上方的字?之前有一个帖子,也问这问题,官方说:使用了相应的接口才会出现在设置页里,请问能不能说的详细点呀?
2017-12-15 - Android手机 蓝牙发现不了设备
使用android调试,搜索不到设备,一直都不会执行onBluetoothDeviceFound的回调。openBluetoothAdapter执行成功了,startBluetoothDevicesDiscovery也执行成功了,微信的全部权限都打开了,也重启手机了,都不行。代码: onLoad: function (options) { var page = this; wx.openBluetoothAdapter({ success: function (res) { wx.onBluetoothAdapterStateChange(function (res) { console.log(`adapterState changed, now is`, res) }) }, fail: function (res) { } }); wx.onBluetoothDeviceFound(devices => { console.log('new device list has founded', devices); }); wx.startBluetoothDevicesDiscovery({ services: [], success: function (res) { console.log('startBluetoothDevicesDiscovery: success => ', res); }, fail: function (res) { console.log('fail => ', res) } }); },
2017-12-15