// 全局声明 type Canvas = WechatMiniprogram.Canvas; type RenderingContext = WechatMiniprogram.CanvasRenderingContext;