AmazingPromise

Results 1 comments of AmazingPromise

是的,目前返回的any。 目前在使用时需要手动指定类型 ``` let canvas = this.getCanvas() as HTMLCanvasElement & WechatMiniprogram.Canvas; const ctx = canvas.getContext('2d')!; const img = canvas.createImage() as CanvasImageSource; ctx.drawImage(img, 0, 0, 100, 100); ``` 目前官方文档已经不推荐使用 `wx.createCanvasContext` 接口,建议...