- 安卓手机蓝牙打印传输慢
[图片] [图片] 蓝牙打印 安卓传输数据慢啊,请问该怎么处理,iphone 传输数据间隔只有1毫秒,安卓的差不多0.4秒,请问是安卓对arraybuffer支持不好还是什么问题
2018-09-18 - 安卓 连接蓝牙打印 传输数据慢的问题
[代码]let arr = [[代码][代码] [代码][代码]fetch.gb2312buffer(title),[代码] [代码] [代码][代码]fetch.gb2312buffer(barcode),[代码][代码] [代码][代码]// fetch.gb2312buffer(barnum),[代码][代码] [代码][代码]fetch.gb2312buffer(fixword1),[代码][代码] [代码][代码]fetch.gb2312buffer(fixword2),[代码] [代码] [代码][代码]fetch.gb2312buffer(qrcode),[代码][代码] [代码][代码]fetch.gb2312buffer(receiveMan),[代码][代码] [代码][代码]fetch.gb2312buffer(sep1),[代码][代码] [代码][代码]fetch.gb2312buffer(receiveAddress),[代码] [代码] [代码][代码]fetch.gb2312buffer(sep2),[代码][代码] [代码][代码]fetch.gb2312buffer(name),[代码][代码] [代码][代码]fetch.gb2312buffer(sep),[代码][代码] [代码][代码]fetch.gb2312buffer(amount),[代码] [代码] [代码][代码]fetch.gb2312buffer(sep4),[代码][代码] [代码][代码]fetch.gb2312buffer(pType),[代码][代码] [代码][代码]fetch.gb2312buffer(sepl),[代码][代码] [代码][代码]fetch.gb2312buffer(distributionWay),[代码] [代码] [代码][代码]fetch.gb2312buffer(sep3),[代码][代码] [代码][代码]fetch.gb2312buffer(company)[代码][代码] [代码][代码]][代码][代码] [代码][代码]Promise.all(arr).then(res => {[代码][代码] [代码][代码]console.log(res)[代码][代码] [代码][代码]res.map((data, index) => {[代码][代码] [代码][代码]wx.writeBLECharacteristicValue({[代码][代码] [代码][代码]deviceId: that.data.deviceId,[代码][代码] [代码][代码]serviceId: that.data.serviceId,[代码][代码] [代码][代码]characteristicId: that.data.characteristicId,[代码][代码] [代码][代码]value: data.data,[代码][代码] [代码][代码]success: [代码][代码]function[代码][代码](re) {[代码][代码] [代码][代码]if[代码] [代码](index == res.length - 1) {[代码][代码] [代码][代码]that.myToast.show([代码][代码]'打印完成'[代码][代码])[代码][代码] [代码][代码]}[代码] [代码] [代码][代码]},[代码][代码] [代码][代码]fail: [代码][代码]function[代码][代码](re) {[代码][代码] [代码][代码]console.log([代码][代码]'fail'[代码][代码], re)[代码][代码] [代码][代码]that.myToast.show([代码][代码]'打印失败,请联系客服人员'[代码][代码])[代码][代码] [代码][代码]},[代码][代码] [代码][代码]complete: [代码][代码]function[代码][代码]() {[代码][代码] [代码][代码]wx.hideLoading()[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码] [代码][代码]})[代码][代码] [代码][代码]}, err => {[代码][代码] [代码][代码]wx.hideLoading()[代码][代码] [代码][代码]that.myToast.show([代码][代码]'打印失败,请联系客服人员'[代码][代码])[代码][代码] [代码][代码]console.log([代码][代码]'re fail'[代码][代码], re)[代码][代码] [代码][代码]})[代码]要发送的数据通过后台转码后,promise请求完遍历发送到蓝牙设备,iphone设备发送打印正常,安卓设备就发送很慢,所有的数据都是分开打印的,请问该怎么解决
2018-09-17 - 小程序连蓝牙打印要先转gb2312怎么破
现在项目要做蓝牙连接打印机打印功能,打印机编码是gb2312格式的,然后还需要转为ArrayBuffer,后台转了gb2312后这里接受的是字符串,请问该怎么破
2018-08-20 - iphone6 11.3系统 input点击问题
首先问个问题,input 设置disable 能不能点击,能点击的话,会不会触发点击事件; 能触发点击事件的话,我这有个问题,iphone6 11.3系统,input设置了disable后 不能点击,请问这是什么问题
2018-04-25 - 小程序内列表页面图片报403加载不了,预览就可以加载
[图片] [图片] 请问这是什么问题
2018-03-26