canvas 2d 官方demo跑起来真机调试报错?

发布于 7 年前作者 pxia9751 次浏览最后编辑 7 年前来自 issues

根据官网canvas示例 复制粘贴到项目中 模拟器正常真机报错

当代码执行到\`exec()\`方法得时候会报下面得错误,基础库2.16.0。应该不用片段代码,用官网得demo就能复现。

官网Demo地址:https://developers.weixin.qq.com/miniprogram/dev/component/canvas.html

H.createEvent is not a function
1 回复
hanwei
hanwei1 楼5 年前

体验版可以正常展示二维码。但真机调试不行。