- 微信 公众号jsapi 图片压缩率有多少?开发者工具是否有压缩功能?
图片压缩率有多少?开发者工具是否有压缩功能? wx.chooseImage({ count: 1, // 默认9 sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有 sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有 success: function (res) { var localIds = res.localIds; // 返回选定照片的本地ID列表,localId可以作为img标签的src属性显示图片 } }); 此接口是不是安卓iOS都可以? 这个获取的base64 图片是否是通过压缩的? wx.getLocalImgData({ localId: '', // 图片的localID success: function (res) { var localData = res.localData; // localData是图片的base64数据,可以用img标签显示 } }); 预览图片
2023-10-16 - setMTU fail ?
[09:55:38] setMTU fail {"errMsg":"setBLEMTU:fail:system error, status: GATT ERROR","errno":1500104,"errCode":-1,"mtu":null} {"screenWidth":360,"cpuType":"SM7325","phoneCalendarAuthorized":true,"windowHeight":720,"bluetoothEnabled":true,"errMsg":"getSystemInfo:ok","language":"zh_CN","microphoneAuthorized":true,"fontSizeScaleFactor":1,"locationAuthorized":true,"notificationAuthorized":true,"model":"NCO-AL00","statusBarHeight":38,"safeArea":{"width":360,"right":360,"top":38,"left":0,"bottom":800,"height":762},"brand":"HUAWEI","windowWidth":360,"locationEnabled":true,"benchmarkLevel":-1,"screenHeight":800,"abi":"arm64-v8a","version":"8.0.41","cameraAuthorized":true,"deviceAbi":"arm64-v8a","system":"Android 12","memorySize":7364,"fontSizeSetting":16,"pixelRatio":3,"deviceOrientation":"portrait","wifiEnabled":false,"screenTop":81,"platform":"android","SDKVersion":"3.1.2","enableDebug":false,"devicePixelRatio":3,"host":{"env":"WeChat","version":671099217},"mode":"default"}
2023-10-03 - 小程序打印data有数据data能打印data下面的对象打印不出来?
[图片]
2023-06-29 - request 中的onChunkReceived 乱码
网页,postman ,接口都表现正常,开启 enableChunked: true, 后就乱码,求解 let task = wx.request({ url: 'https://xxx/api/chat/generate', enableChunked: true, method: "GET", }) task.onChunkReceived((buffer) => { // const decoder = new TextDecoder("utf-8"); // const str = decoder.decode(new Uint8Array(buffer.data)) const arrayBuffer = buffer.data; const uint8Array = new Uint8Array(arrayBuffer); let text = String.fromCharCode.apply(null, uint8Array); console.log('onChunkReceived',text) }) chrome表现 [图片] postman [图片] 后台接口 [图片] 乱码 [图片]
2023-05-18 - 微塔控制台 是干什么用的还要收费?
微塔控制台 是干什么用的还要收费?1.05.2203070windows
2022-03-14 - getBLEMTU 找不到? 报错 wx.getBLEMTU is not a function
如题调用 wx.getBLEMTU() 报错 wx.getBLEMTU is not a function ! oppo k7 android 11 在iOS 上表现正常 wx.createBLEConnection 调用成功了!!!!!
2021-11-11 - onBluetoothDeviceFound 回调只有一个设备?
周围有两个设备但是只返回了一个设备,两个设备不能同时搜索到,只能搜索到一个 非常着急!!!!
2020-08-18 - 蓝牙发送消息返回1004找不到特征值?
调用wx.createBLEConnection(Object object)连接成功后我知道了设备的serviceId ,特征值Id 为什么调用wx.writeBLECharacteristicValue(Object object) 会报10004找不到特征值 必须要先调用 wx.getBLEDeviceServices() wx.getBLEDeviceCharacteristics() wx.writeBLECharacteristicValue() 才能写入成功,但是我的serviceId、特征值(写死的),还是同一个!!!
2020-08-13 - 不同苹果手机下,同一个蓝牙设备 uuid是不是同一个?
wx.startBluetoothDevicesDiscovery(Object object)
2020-08-11 - canvas2d 造成内存泄漏?
开发者工具:stable 1.03.2006090 基础库版本:2.12.0 场景:组件内有canvas ,一个page里面有多个(20个) 报警告: VM8350:1 [Event] 21 listeners of event onBeforeUnloadPage_318 have been added, possibly causing memory leak. [图片]
2020-08-03