//半径 var r = 130; //重置原点 ctx.save(); ctx.translate(400, 500); //使用translate重置原点 function drawClock() { //画时钟不动的背景 //时钟外圈 ctx.beginPath(); ctx.arc(0, 0, r, 0, 2*Math.PI); ctx.strokeStyle = 'blue'; ctx.lineWidth = 5; ctx.stroke(); ctx.closePath(); //圆心…