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