Saya tidak mengatakan banyak omong kosong, saya akan memposting kode secara langsung.
<! OP: 250px;} #clock {border: 1px solid #cccccc;} </tyle> </head> <body> <div> <canvas id = clock height = 600px width = 600px> </canvas> </div> RIPT = Teks/JavaScript> var dom = document.geteLementById ('clock'); R = Width /2; BeginPath (); // Mulai jalur CTX.LINEWIDTH = 10 * REM; false); +px Arial; (R -30*REM); I ++; Rem); 0, 2 * Math.pi, false); ;} ctx.fill ();} Fungsi drawhouse (jam, menit) {ctx. / 12 /60*Minute; 2); (Rad); .Restore ();} Drawsecond (kedua) {ctx.save (); ); -r + 16*Rem); * Rem, 0, 2 * Math.pi, false); Now.gethouse (); Restore ();} draw01 ();Meringkaskan
Di atas adalah implementasi HTML5 dari HTML5 bahwa editor dapat memperbesar kode jam. Terima kasih banyak atas dukungan Anda untuk situs web VEVB Wulin!