收藏
回答

开发者工具真机调试,插件模式,获取canvas 会报错,直接在手机运行不会报错?

VM13:2 SystemError (appServiceSDKScriptError)

d.g.Canvas is not a constructor

TypeError: d.g.Canvas is not a constructor

    at Yz (eval at Ce.t.call.document (http://127.0.0.1:31326/remote-debug/runtime.js?devtools_ignore=true:1:18762), <anonymous>:2:1344480)

    at new Zz (eval at Ce.t.call.document (http://127.0.0.1:31326/remote-debug/runtime.js?devtools_ignore=true:1:18762), <anonymous>:2:1344857)

    at VG (eval at Ce.t.call.document (http://127.0.0.1:31326/remote-debug/runtime.js?devtools_ignore=true:1:18762), <anonymous>:2:1384702)

    at eval (eval at Ce.t.call.document (http://127.0.0.1:31326/remote-debug/runtime.js?devtools_ignore=true:1:18762), <anonymous>:2:1385563)

    at Generator.next (<anonymous>)

    at n (eval at Ce.t.call.document (http://127.0.0.1:31326/remote-debug/runtime.js?devtools_ignore=true:1:18762), <anonymous>:2:2667)

    at s (eval at Ce.t.call.document (http://127.0.0.1:31326/remote-debug/runtime.js?devtools_ignore=true:1:18762), <anonymous>:2:2870)

    at H (eval at Ce.t.call.document (http://127.0.0.1:31326/remote-debug/runtime.js?devtools_ignore=true:1:18762), <anonymous>:2:68754)

    at eval (eval at Ce.t.call.document (http://127.0.0.1:31326/remote-debug/runtime.js?devtools_ignore=true:1:18762), <anonymous>:2:70381)

    at C (eval at Ce.t.call.document (http://127.0.0.1:31326/remote-debug/runtime.js?devtools_ignore=true:1:18762), <anonymous>:2:38455)

回答关注问题邀请回答
收藏
登录 后发表内容