beginPath 绘制路径必须添加 beginPath().它标志着一个画笔在画布中哪个地方开始画起.没有它,新起的画笔位置必定与上一次画笔结束的位置相连. // 第一个半圆 ctx.arc(60, 80, 50, 0, Math.PI, true); ctx.fillStyle = 'gold'; ctx.fill(); ctx.strokeStyle = 'red'; ctx.stroke(); // 第二个半圆 ctx.arc(240, 200, 50, 0, Math.PI, fals