以下是代码:
drawing = new Image() drawing.src = "draw.png" context.drawImage(drawing,0);
drawing = new Image(); drawing.src = "draw.png"; // can also be a remote URL e.g. http:// drawing.onload = function() { context.drawImage(drawing,0); };