大佬,编译成微信小程序后真机调试报错,无法显示。 但是预览和开发者工具中能正常显示。 这个是啥子原因呀?
MiniProgramError U.createEvent is not a function TypeError: U.createEvent is not a function at Q (eval at n.call.document (http://127.0.0.1:13063/remote-debug/runtime.js?devtools_ignore=true:1:13107), :2:30288) at eval (eval at n.call.document (http://127.0.0.1:13063/remote-debug/runtime.js?devtools_ignore=true:1:13107), :2:30586) at e.exports (eval at n.call.document (http://127.0.0.1:13063/remote-debug/runtime.js?devtools_ignore=true:1:13107), :2:35748) at eval (eval at n.call.document (http://127.0.0.1:13063/remote-debug/runtime.js?devtools_ignore=true:1:13107), :2:30537) at y. (eval at n.call.document (http://127.0.0.1:13063/remote-debug/runtime.js?devtools_ignore=true:1:13107), :2:33814) at O (eval at n.call.document (http://127.0.0.1:13063/remote-debug/runtime.js?devtools_ignore=true:1:13107), :2:33543) at Function.eval (eval at n.call.document (http://127.0.0.1:13063/remote-debug/runtime.js?devtools_ignore=true:1:13107), :2:33581) at at eval (eval at n.call.document (http://127.0.0.1:13063/remote-debug/runtime.js?devtools_ignore=true:1:13107), :2:110325) at eval (eval at n.call.document (http://127.0.0.1:13063/remote-debug/runtime.js?devtools_ignore=true:1:13107), :2:101470)
1 个回复
陌上华年
微信小程序 不支持canvas 2d真机预览。文档有说明的。<br>