按照样例尝试了两种方式都会报同样的错误; 第一种: const ctx = wx.createCameraContext() ctx.takephoto({ quality: 'high', succsess: (res) => { this.setData({ src:res.tempImagePath }) } }) 第二种: this.ctx = wx.createCameraContext(); this.ctx.takePhoto({ quality: 'high', success: (res) => { this.setData({ src:res.tempImagePath }) } })
调用ctx.takePhoto时报错,ctx.takephoto is not a functionhttps://developers.weixin.qq.com/miniprogram/dev/component/camera.html
2021-01-20