此问题大家都解决了吗?我这里是用canvas 2d在iPad上报错,如果是用webgl就没有问题。真机调试报错如下: runtime.js?devtools_ignore=true:1 [Violation] 'message' handler took 258ms VM14:2 Unhandled promise rejection TypeError: r.Canvas is not a constructor at n.value (eval at n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:742386) at n.value (eval at n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:626107) at t (eval at n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:626279) at n.value (eval at n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:626368) at eval (eval at n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:1244118) at new T (eval at n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:66743) at t (eval at n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:1244080) at eval (eval at n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:1244135) at Array.forEach (<anonymous>) at r (eval at n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:1243340) eval @ VM14:2 e.exports @ VM14:2 eval @ VM14:2 e.exports @ VM14:2 y.<computed> @ VM14:2 r @ VM14:2 eval @ VM14:2 eval @ VM14:2 eval @ VM14:2 setTimeout (async) setTimeout @ VM14:2 _.now.f.addEventListener.f.importScripts.i @ VM14:2 h @ VM14:2 M @ VM14:2 eval @ VM14:2 e @ VM14:2 e.exports @ VM14:2 y.<computed> @ VM14:2 r @ VM14:2 eval @ VM14:2 eval @ VM14:2 eval @ VM14:2 setTimeout (async) setTimeout @ VM14:2 _.now.f.addEventListener.f.importScripts.i @ VM14:2 h @ VM14:2 o @ VM14:2 eval @ VM14:2 D @ VM14:2 B @ VM14:2 eval @ VM14:2 success @ VM14:2 eval @ VM14:2 y @ VM14:2 v @ VM14:2 eval @ VM14:2 v @ VM14:2 u @ runtime.js?devtools_ignore=true:1 w @ runtime.js?devtools_ignore=true:1 ke.onmessage @ runtime.js?devtools_ignore=true:1
TypeError: r.Canvas is not a constructor ?[图片] canvas画布, 开发工具不报错,真机调试就出现错误: Unhandled promise rejection TypeError: r.Canvas is not a constructor
2020-04-14