<canvas type="2d" id="myCanvas" style="width:200px; height:100px;"></canvas>
onShow() {
this.canvasstate()
},
canvasstate(){
let that = this;
const query = wx.createSelectorQuery()
query.select('#myCanvas')
.fields({
node: true, size: true })
.exec((res) =>