语言

Menu
Sites
Language

Create a canvas element dynamically

A simple example of creating a canvas dynamically.

响应

1 回复
Marco Buettner

var canvas = document.createElement('yourCanvas'); 

should be

var canvas = document.createElement('canvas');