Kode JS sederhana dengan hitungan mundur 60 detik muncul saat mengklik tombol (disarankan)
<! Doctype html public "-// w3c // dtd xhtml 1.0 transisi // en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Click the button to display a 60-second countdown (recommended)</title> <script type="text/javascript" src = "js/jQuery.js"> </script> </head> <body> <input type = "tombol" id = "btn" value = "Dapatkan kode verifikasi secara gratis" OnClick = "setTime (this)"/> <script type = "text/javascript"> var countdown = 60; function setTime (val) {if (countDown == 0) {val.removeattribute ("disabled"); val.Value = "Dapatkan kode verifikasi secara gratis"; Countdown = 60; } else {val.setAttribute ("Disable", true); val.Value = "Resend (" + Countdown + ")"; Countdown--; } setTimeOut (function () {setTime (val)}, 1000)} </script> </body> </html>Kode JS sederhana di atas (disarankan) dengan hitungan mundur 60 detik muncul di artikel di atas. Ini semua konten yang saya bagikan dengan Anda. Saya harap Anda dapat memberi Anda referensi dan saya harap Anda dapat mendukung wulin.com lebih lanjut.