Canvas ã«æç»ããå 容ã¯ãinnerHTML ã使ã£ã Nodeããªã¼ã¸ã®å¹²æ¸ã«ããæç»å 容ããªã»ããããæ¶ãã¦ãã¾ãã¾ã(in Chrome, Safari, Firefox) useInnerHTML = false ã«ããã¨æ¶ãã¾ããã <body> <canvas></canvas> <img src="foo.png"></img> </body> var useInnerHTML = true; window.onload = function() { var ctx = document.querySelector("canvas").getContext("2d"); ctx.drawImage(document.querySelector("img"), 0, 0); if (useInnerHTML) { document.body.innerHTML += "<
{{#tags}}- {{label}}
{{/tags}}