我将mapToImg.js复制进框架,使其自执行,然后页面生成按钮调用
报如下的错
Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The provided value is not of type '(CSSImageValue or HTMLImageElement or SVGImageElement or HTMLVideoElement or HTMLCanvasElement or ImageBitmap or OffscreenCanvas)'
请问是什么原因