canvasContext.setStrokeStylecanvasContext.setStrokeStyle解释:设置边框颜色。 参数: 参数名类型必填说明colorColor是设置的边框颜色 示例: const ctx = this.createCanvasContext('myCanvas');ctx.setStrokeStyle('blue');ctx.strokeRect(30, 30, 150, 75);ctx.draw();