- canvas 2d canvas.height 和canvas.width 赋值卡住不执行
async setOption(option){ console.log("进入setOption") const canvas = this.canvas const layerList = option.layerList // 设置画布宽高 canvas.width = option.width * this.dpr canvas.height = option.height * this.dpr console.log("设置画布宽高") } 安卓手机执行结果 [图片] iphone [图片]
2021-04-22 - canvas 2d 安卓手机赋值canvas.height 和canvas.width 卡住执行?
async setOption(option){ console.log("进入setOption") const canvas = this.canvas const layerList = option.layerList // 设置画布宽高 canvas.width = option.width * this.dpr canvas.height = option.height * this.dpr console.log("设置画布宽高") } 安卓手机执行结果 [图片] iPhone [图片]
2021-04-22