<canvas type="2d" id="firstCanvas" class="firstCanvas" style="width: 330px;height: 415px;"></canvas>
获取到的res为null是什么原因,这段代码复制到别的小程序就可以,看不明白了
网友回复
依然:
不要在onLoad中使用,看一下生命周期吧
<canvas type="2d" id="firstCanvas" class="firstCanvas" style="width: 330px;height: 415px;"></canvas>
获取到的res为null是什么原因,这段代码复制到别的小程序就可以,看不明白了
不要在onLoad中使用,看一下生命周期吧