因为要做一个在时间轴上呈现有无录像回放的效果,所以需要用canvas绘制一个长图,然后存为图片展示,有数据的部分颜色为蓝色,测试了部分Android设备显示正常,iPhone 6也可以正常显示,iPhone XS和iPhone 8P在预览模式下绘制的图片大部分时候是空白的,偶尔正常,但是在真机调试模式下又是可以的

XS空白图片是这样:

正常的图片是这样的:

绘制代码如下:

微信小程序开发问题解答
微信小程序开发者回答:
麻烦提供代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
本文网址:http://www.91bianli.com/weixinxiaochengxu/43410.html