用了官方的代码 https://developers.weixin.qq.com/s/ElC24AmF729W,在iOS13.1.1上运行报错
remote-helper.js:1 eval script evaluate_id #19 failed TypeError: Cannot set property 'ontouchstart' of undefined at WAService.js:1:640211 at Array.forEach (<anonymous>) at WAService.js:1:640182 at WAService.js:1:640643 at WAService.js:1:435971 at Object.m (WAService.js:1:1907) at Object.value [as subscribeHandler] (/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/js/unpack/remote-helper.js:68:2165) at [VM 20]:1:17 at Script.runInContext (vm.js:135:20) at Object.runInContext (vm.js:298:6) value @ remote-helper.js:1 |
这个不是相机的原因,是因为目前不支持 iOS 上 webgl 的 canvas 真机调试,可以真机预览试试
代码片段不完整
我点开这样的,如果不是你片段的问题,那就是工具BUG~