使用three.weapp.js加载全景天空盒并控制移动,在开发工具上没问题但是在真机上就报怎么办?
发布于 5 年前 作者 junyi 5853 次浏览 来自 问答

runtime.js?devtools_ignore=true:1 eval script evaluate_id #34 failed TypeError: Cannot set property ‘ontouchstart’ of undefined    at eval ([publib]:1)    at Array.forEach (<anonymous>)    at eval ([publib]:1)    at n ([publib]:1)    at Object.m ([publib]:1)    at Object.value [as subscribeHandler] (runtime.js?devtools_ignore=true:1)    at eval (eval at c (runtime.js?devtools_ignore=true:1), <anonymous>:1:17)    at eval (<anonymous>)    at c (runtime.js?devtools_ignore=true:1)    at w (runtime.js?devtools_ignore=true:1)

错误信息如上,不知道什么原因,求助各位大佬。

2 回复

麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

同问,请问怎么解决吗

回到顶部