js<canvas>标签绘制不同粗细的线条请在绘制每条线条前,用beginPath()重置路径,这样每条线条的样式就可以单独设置了:var cv = document.getElementById('canvas')var g = cv.getContext(2023-03-02JavaScript140