1.绘制矩形的方法context.rect(x,y,width,height);context.fillRect(x,y,width,height);context.strokeRect(x,y,width,height);