getContext('2d');. 3. canvas.width=300. 4. canvas.height=234. 5. ctx.drawImage(img, 0, 0, 300, 234);. 6. document.body.appendChild(canvas);.
確定! 回上一頁