摘要: 1、canvas.getContext():获取渲染上下文和绘画功能; 一、绘制矩形 2、ctx.fillRect(x,y,width,height):绘制矩形; 3、ctx.strokeRect(x,y,width,height):绘制矩形边框; 4、ctx.clearRect(x,y,width 阅读全文
posted @ 2017-05-04 13:35 落落月 阅读(127) 评论(0) 推荐(0) 编辑