问题模块 | 框架类型 | 问题类型 | 操作系统 | 工具版本 |
---|---|---|---|---|
开发者工具 | 小程序 | Bug | Windows | 1.02.1803210 |
takePhoto() {
const ctx = wx.createCameraContext()
ctx.takePhoto({
quality: 'high',
success: (res) => {
this.setData({
src: res.tempImagePath
})
}
})
}
使用wx.createCameraContext()调用相机模拟器显示未找到摄像头,但控制台没有报错。求指点。
网友回复
夏洛埃克:
你电脑没有没有摄像头,就会出现未找到摄像头