var ctx = canvas.getContext("2d");. Resize the image on load – img.onload = () => { ctx.drawImage(img, ...
確定! 回上一頁