- 双层for循环data-属性获取不到内层循环的值?
双层for循环的时候内层循环添加data-属性,属性值是内层的索引值,但是取值的时候dataset中没有这个属性 [图片][图片]
2024-03-06 - input框输入内容错乱?
在网上copy了一个验证码输入框,就是那种输入一个自动跳转下一个的输入框,在开发者工具上有的时候会出现我输入我输入123,但是显示出来是321,打印输入框内容也是321,但是输入的顺序是123,不理解
2024-01-19 - 荣耀MagicOS 7.0 系统图标消失?
在荣耀MagicOS 7.0系统打开微信小程序后图标不显示,但是其他系统打开都正常
2023-08-29 - pc端微信小程序picker无法自动关闭?
pc端的微信小程序点开picker后再点返回键picker并没有自动消失,请问是什么原因?
2022-01-18 - 苹果12真机调试调用相机人脸识别报错?
start:fail onCameraFrame is not supported on your device 请问是什么原因导致的呢? var that = this; wx.initFaceDetect(); const context = wx.createCameraContext(); this.context = context let listener = context.onCameraFrame((frame) => { wx.faceDetect({ frameBuffer: frame.data, width: frame.width, height: frame.height, enablePoint: true, enableConf: true, enableAngle: true, enableMultiFace: true, success: function (faceData) { let face = faceData.faceInfo[0] if (face.angleArray.pitch >= 0.1 || face.angleArray.roll >= 0.1 || face.angleArray.yaw >= 0.1) { wx.showToast({ title: '请平视摄像头', }) } else if (face.confArray.global <= 0.8 || face.confArray.leftEye <= 0.8 || face.confArray.mouth <= 0.8 || face.confArray.nose <= 0.8 || face.confArray.rightEye <= 0.8) { wx.showToast({ title: '请勿遮挡五官', }) } else { // listener = null listener.stop() wx.showLoading({ title: '识别中', }) // listener = null setTimeout(() => { wx.showToast({ title: '延迟', }) wx.hideLoading(); // wx.showLoading({ // title: '识别中', // }) // that.tapTakePhoto() }, 3*1000); } }, fail: function (err) { if (err.x == -1 || err.y == -1) { wx.showLoading({ title: '识别不到人脸', }) } else { wx.showToast({ title: '网络错误', }) } }, }) }) listener.start()
2022-01-13 - getPhoneNumber:fail no permission?
微信小程序已认证,但是还是提示这个 getPhoneNumber:fail no permission? 小程序id: wxe529890a067aa700
2022-01-11