<canvas wx:if="{{canvasshow}}" type="2d"id="Canvas"></canvas>
VM86:1 TypeError: Cannot set property 'top' of undefined
at VM92 WAService.js:2
at VM92 WAService.js:2
at n (VM90 asdebug.js:1)
at e.exports.<anonymous> (VM90 asdebug.js:1)
at VM90 asdebug.js:1
at Array.forEach (<anonymous>)
at WebSocket._ws.onmessage (VM90 asdebug.js:1)
没后续了? 我js中没有任何canvas相关的代码,只是在wxml文件中 对canvas加了 type="2d" 就会报Cannot set property 'top' of undefined
确实,页面滚动的时候如果存在canvas就会报这个错
你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
VM2177:1 TypeError: Cannot set property 'top' of undefined
at VM2193 WAService.js:2
at VM2193 WAService.js:2
at n (VM2191 asdebug.js:1)
at e.exports.<anonymous> (VM2191 asdebug.js:1)
at VM2191 asdebug.js:1
at Array.forEach (<anonymous>)
at WebSocket._ws.onmessage (VM2191 asdebug.js:1)
一样的问题 我是通过hidden 动态显示隐藏的