When bringing image resources to canvas, make sure to set cross-domain first and then SRC. Note!!!!!!! Apple 11 and later mobile phones have strict requirements on the size of Canvas, which can be enlarged by 4 times at most and will not be displayed without error

imgone.onload =  () =>{

if (imgone.complete) {
Copy the code

Apple’s second drawing is invalid without complete