官方代码,关于相机的,在iOS13.1上运行报错
发布于 7 年前 作者 dingli 6165 次浏览 来自 官方Issues

用了官方的代码 https://image.wxopen.club/content_fb30b1d8-4f30-11ea-8adf-001a7dda7111.png,在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
2 回复

代码片段不完整

这个不是相机的原因,是因为目前不支持 iOS 上 webgl 的 canvas 真机调试,可以真机预览试试

回到顶部