canvasToTempFilePath 在开发工具中正常,Android 真机调试报错,求解!!!!
https://developers.weixin.qq.com/s/8FoaeVmB7Vqw
微信版本 8.0.6, 基础库 2.17.0, 运行系统 30
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:14262/remote-debug/runtime.js?devtools_ignore=true:1:13107), <anonymous>:2:30288)
at eval (eval at n.call.document (http://127.0.0.1:14262/remote-debug/runtime.js?devtools_ignore=true:1:13107), <anonymous>:2:30586)
at e.exports (eval at n.call.document (http://127.0.0.1:14262/remote-debug/runtime.js?devtools_ignore=true:1:13107), <anonymous>:2:35748)
at eval (eval at n.call.document (http://127.0.0.1:14262/remote-debug/runtime.js?devtools_ignore=true:1:13107), <anonymous>:2:30537)
at y.<computed> (eval at n.call.document (http://127.0.0.1:14262/remote-debug/runtime.js?devtools_ignore=true:1:13107), <anonymous>:2:33814)
at O (eval at n.call.document (http://127.0.0.1:14262/remote-debug/runtime.js?devtools_ignore=true:1:13107), <anonymous>:2:33543)
at Function.eval (eval at n.call.document (http://127.0.0.1:14262/remote-debug/runtime.js?devtools_ignore=true:1:13107), <anonymous>:2:33581)
at <setTimeout callback function>
at eval (eval at n.call.document (http://127.0.0.1:14262/remote-debug/runtime.js?devtools_ignore=true:1:13107), <anonymous>:2:110325)
at eval (eval at n.call.document (http://127.0.0.1:14262/remote-debug/runtime.js?devtools_ignore=true:1:13107), <anonymous>:2:101470)
同一个问题,开发工具中是正常的,真机测试和真机预览都报错"canvasToTempFilePath: fail canvas is empty"
你好,canva2d 不支持真机调试,用真机预览试试?