收藏
回答

调用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>


最后一次编辑于  07-16  (未经腾讯允许,不得转载)
邀请回答
复制链接收藏关注问题回答

4 个回答