strokeRect()方法用来绘制一个矩形(无填充),后绘制的会覆盖先前绘制的。

  • ctx.strokeRect(x, y, width, height)