- 为什么分包中independent ,加入独立分包的,调用不了app.wxss引入的样式 ?
independent:true 。 之前分包 没用这个 ,昨天更新不知道有什么用,就写了一下,然后就发现真机调用时 独立分包里的东西 用不了app.wxss的样式
2019-11-15 - 真机调用的时候报错 样式wxml显示不出来 framework inner error?
[图片]
2019-11-15 - cover-view 微信升级最新版本后失效
求助? 什么时候好
2017-11-20 - ios 微信版本6.5.9的出不来cover-view不显示
请问多少版本的才能显示
2017-11-06 - 求助:advertisData转成字符串为空
有两个问题:1,是不是在ios下,得到mac地址 只能将advertisData转成字符串,进行获取; 2,相同的代码,将advertisData转为mac地址,,在下图中我们自己的蓝牙打印出来为空,;而其余搜索到的设备自打印出来了? 请问是什么情况?[图片]
2017-11-03 - openLocation我想要在小程序内调用手机安装的百度地图之类,应该怎么做?
[代码]wx.openLocation[代码] [代码][图片] [代码] 这个接口可以打开内置地图 然后点击绿色按钮 [图片] 可以弹出列表调用手机安装的地图app 那这个按钮的功能可以自己实现吗?就是比如自己定义一个按钮,然后点击弹出手机中的地图app然后选择调用。
2017-10-30 - 蓝牙读取数据,监听返回000000000000000000什么情况
write:function(){ var that=this; var buffer = new ArrayBuffer(16) var dataView = new DataView(buffer) var str = '0xd3,0x80,0x60,0x79,0x76,0xc9,0xdd,0x46,0xe5,0x18,0xf4,0x31,0xf6,0x4e,0xb6,0x44'; var arr = str.split(',') var val; for (var i = 0; i < arr.length; i++) { val = parseInt(arr[i], 16) dataView.setInt8(i, val); } wx.writeBLECharacteristicValue({ deviceId: that.data.deviceId, serviceId: that.data.services, characteristicId: that.data.characteristicsFEC7, value: buffer, success: function (res) { console.log(res, 'writeBLECharacteristicValue success'); wx.onBLECharacteristicValueChange(function (res) { console.log('-writeaaaaaaaaa:', res); var buffer = Array.prototype.map.call(new Uint8Array(res.value), x => ('00' + x.toString(16)).slice(-2)).join(''); console.log(buffer) }) wx.notifyBLECharacteristicValueChange({ state: true, // 启用 notify 功能 deviceId: that.data.deviceId, serviceId: that.data.services, characteristicId: that.data.characteristicsFEC8, success: function (res) { console.log('notifyBLECharacteristicValueChange success', res.errMsg) }, fail: function (res) { console.log('notifyBLECharacteristicValueChange fail', res.errMsg) } }) }, fail: function (res) { console.log(res, 'buff fail') } }) }, read:function(){ var that=this; wx.onBLECharacteristicValueChange(function (res) { console.log('-write:', res); var buffer = Array.prototype.map.call(new Uint8Array(res.value), x => ('00' + x.toString(16)).slice(-2)).join(''); console.log(buffer) // const blueArrayBuffer = new Uint8Array(res.value); // const base64Str = wx.arrayBufferToBase64(blueArrayBuffer); // console.log(base64Str) }) //读取低功耗蓝牙设备的特征值的二进制数据值 wx.readBLECharacteristicValue({ deviceId: that.data.deviceId, serviceId: that.data.services, characteristicId: that.data.characteristicsFEC9, success: function (res) { console.log('readBLECharacteristicValue++++++++++++++++++++++:', res) }, fail: function (res) { console.log('readBLECharacteristicValue fail:', res) }, }) }, 为什么写入后读取的console.log(buffer) 是000000000000000000000000000000000000 求助
2017-10-18 - 求助:蓝牙写入成功 读取不到 没有这个参数
var buffer = new ArrayBuffer(16) var dataView = new DataView(buffer) var str = '0xd3,0x80,0x60,0x79,0x76,0xc9,0xdd,0x46,0xe5,0x18,0xf4,0x31,0xf6,0x4e,0xb6,0x44'; var arr = str.split(',') var val; for (var i = 0; i < arr.length; i++) { val = parseInt(arr[i], 16) dataView.setInt8(i, val); } wx.writeBLECharacteristicValue({ deviceId: that.data.deviceId, serviceId: that.data.services, characteristicId: that.data.characteristicsFEC7, value: buffer, success: function (res) { console.log(res,'writeBLECharacteristicValue success'); //启用低功耗蓝牙设备特征值变化时的 notify 功能 wx.notifyBLECharacteristicValueChanged({ deviceId: that.data.deviceId, serviceId: that.data.services, characteristicId: that.data.characteristicsFEC8, state: true, success: function (res) { console.log("notifyBLECharacteristicValueChanged", res); }, fail: function (res) { console.log("uuid ble cvc fail>>>>>>>888888888", res); }, }); // 必须在这里的回调才能获\ setTimeout(function(){ wx.onBLECharacteristicValueChange(function (characteristic) { console.log('onBLECharacteristicValueChang:', characteristic); const base64 = Array.prototype.map.call(new Uint8Array(characteristic.value), x => ('00' + x.toString(16)).slice(-2)).join(''); console.log(base64) }) },3000) setTimeout(function(){ //读取低功耗蓝牙设备的特征值的二进制数据值 wx.readBLECharacteristicValue({ deviceId: that.data.deviceId, serviceId: that.data.services, characteristicId: that.data.characteristicsFEC9, success: function (res) { console.log('readBLECharacteristicValue++++++++++++++++++++++:', res) }, fail: function (res) { console.log('readBLECharacteristicValue fail:', res) }, }) },3000) }, fail: function (res) { console.log(res,'buff fail') } }) readBLECharacteristicValue成功后不应该返回两个参数吗 characteristicobject设备特征值信息errMsgstring成功:ok,错误:详细信息我怎么都没有characteristic这个参数 只有errMsg与errcode ++++加号后面的是我的返回值 [图片]
2017-10-17 - iOS系统,什么情况 这不是安卓的图标么
[图片] 5s 9.2登录进去,页面右上角,有一个向上图标,点击后还在页面。之后就没有图标
2017-10-13 - cover-view 在ios版本8.1.3不显示,
为什么?????
2017-10-13