如上4图第二次lineWidth设置比第一次lineWidth设置的值大后就会导致第一次画出的线段的lineWidth受到影响 请教各位前端大神有什么好的处理方案,可以使得第一次的lineWidth不受影响
学习是最好的投资!
The problem is solved because the .beginPath() method is not added If you add .beginPath() without save(); and restore();, that’s fine too
The path requires closePath
BeginPath should be added when drawing lines
The problem is solved
because the .beginPath() method is not added
If you add .beginPath() without save(); and restore();, that’s fine too
The path requires closePath
BeginPath should be added when drawing lines