this.ctxg.setLineDash([10, 10])
设置虚线
this.ctxg.setLineDash([])
设置实线
if (index > 5 && index < 15) {
if (this.isLine) {
this.ctxg.stroke()
this.ctxg.closePath()
this.ctxg.beginPath()
this.ctxg.setLineDash([10, 10])
}
this.isLine = false
} else {
if (!this.isLine) {
this.ctxg.stroke()
this.ctxg.closePath()
this.ctxg.save()
this.ctxg.beginPath()
this.ctxg.setLineDash([])
}