#myCanvas
clearRect
20,20,10,50|20,20,20,50|20,20,30,50|20,20,50,50|20,20,100,50|20,20,200,50
ctx.fillStyle = 'red'; ctx.fillRect(0,0,300,150); ctx.clearRect(#val);
your browser does not support the canvas tag
Canvas
❮
Previous
Next
❯
观看不同值的演示
.
或者点击指定值查看结果
在编辑器中更多地使用代码:
亲自尝试一下 ❯