uniapp和微信小程序中canvas如何隐藏并且draw不报错?
我用canvas设置display:none;后直接报错
anvas>: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The image argument is a canvas element with a width or height of 0. Error: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The image argument is a canvas element with a width or height of 0.
网友回复
设置fixed,并通过top将他排除在可视范围内即可
<view id="canvas"> <canvas style="width: 60...
点击查看剩余70%