Ich sage nicht viel Unsinn, ich werde die Code direkt posten.
<! Op: 250px;} #clock {Border: 1px Solid #cccccc;} </style> </head> <body> <div> <Canvas ID = Takthöhe = 600px width = 600px> </canvas> </div> RIPT -Typ = text/javaScript> var document.getElementById ('Clock'); r = width /2; beginPath (); Falsch); +PX Arial; (R -30*rem); ; i ++; i ++; Rem); 0, 2 * math.pi, false); } ctx.fill (); / 60*Minute; 2); (Rad); .restore ();} Function drawsecond (second) {ctx.save (); ctx .beginpath (); ctx.fillstyle = 'red'; var rad = 2 * math.pi / 60 * second; ctx.rotate (RAD ); -R + 16*REM); * Rem, 2, 2 * math.pi, false); nun.GetHuse (); Restore ();} Draw01 ();Zusammenfassen
Die oben genannte HTML5 -Implementierung des HTML5 kann den Clock -Code vergrößern. Vielen Dank für Ihre Unterstützung für die VEVB Wulin -Website!