调用wx.canvasToTempFilePath报错显示'canvasId'
发布于 6 年前 作者 majie 8769 次浏览 来自 问答

Cannot read property ‘canvasId’ of undefined; at wx.canvasToTempFilePath

TypeError: Cannot read property ‘canvasId’ of undefined

    at An (WAService.js:1:428255)

    at Object.Mn [as canvasToTempFilePath] (WAService.js:1:428896)

    at Object.<anonymous> (WAService.js:1:271002)

    at Object.<anonymous> (WAService.js:1:851323)

    at Function.<anonymous> (WAService.js:1:851453)

    at Object.<anonymous> (WAService.js:1:256943)

    at ye.canvasToTempImage (http://127.0.0.1:60152/appservice/pages/mymain/mymain.js:226:6)

    at Function.

(http://127.0.0.1:60152/appservice/pages/mymain/mymain.js:221:11)

    at WAService.js:1:101748

    at WAService.js:1:89930

<canvas canvas-id=“canvas” class=“hbcanvas” hidden=“true”></canvas>

<canvas canvas-id=“mycanvas” class=“hbcanvas” hidden=“true”></canvas>

回到顶部