Under the canvas img. onl oad is triggered, not don't know what the reason, in front has also added a judgment cache... Don't know what reason is not loaded... Please help me have a look at ~ thank you,
{if plete (img.com)
Img. onl oad=function () {
The console. The log (1111)//output of 1111 also has not appeared
As cans. DrawImage (
Img,//to use images of the canvas or video,
0,
0,//shear x coordinates,
Img width,
Img. Height,//be the height of the shear image,
- 200,
(can) height)/2.4,//place the image on the canvas of the x, y coordinates,
170,
90//to use the width of the image, highly
)
}
Img SRC=https://bbs.csdn.net/topics/require ('../../../assets/download. PNG ')
}