Document window.onload = function(){ ); canvas.width = 1024; canvas.height = 768; )){ ); context.lineWidth = 5; context.strokeStyle ; ){ context.beginPath(); context.arc( context.closePath(); context.stroke() } ){ context.beginPath(); context.arc( context.stroke() } ){ context.beginPath(); context.arc( context.closePath(); context.stroke(); context.fillStyle context.fill(); } }else{ alert(); } } 总结 context.arc( (圆心x 圆心y 半径r) centerx,centery,radius, (起始角度,终止角度) startingAngle,endingAngle, (false 顺时针绘制) anticlockwise = false )