专题文章
时长:00:00更新时间:2020-11-27 20:16:53
我试水了画了一个时钟,和MDN的例子略有一点不同。I work it by myself。<;,0,300,300);ctx.translate(150,150);ctx.lineWidth = 4;ctx.strokeStyle = ";#a77";ctx.beginPath();ctx.arc(0,0,100,0,Math.PI*2,true);ctx.stroke();ctx.rotate(-Math.PI/2);//minute mark ctx.save();for(var i = 0;i<;60;i++){if(i%5。= 0){ ctx.beginPath();ctx.moveTo(90,0);ctx.lineTo(94,0,0。
查看详情