收藏
回答

调用wx.canvasToTempFilePath报错显示'canvasId'

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>


回答关注问题邀请回答
收藏

2 个回答

登录 后发表内容