يظهر رمز JS البسيط مع 60 ثانية العد التنازلي عند النقر فوق الزر (الموصى به)
<! doctype html public "-// w3c // dtd xhtml 1.0 transitional // en" xmlns = "http://www.w3.org/1999/xhtml"> <head> <meta http-equiv = "content-type" content = "text/html ؛ charset = utf-8"/> <title> انقر فوق زر عرض 60-second </united> src = "js/jquery.js"> </script> </head> <body> <input type = "button" id = "btn" value = "get code code for free" onClick = "setTime (this)"/> <script type = "text/javaScript"> var conddone = 60 ؛ دالة setTime (val) {if (countdown == 0) {val.RemoVeatTribute ("تعطيل") ؛ Val.Value = "احصل على رمز التحقق مجانًا" ؛ العد التنازلي = 60 ؛ } else {val.setAttribute ("upabled" ، true) ؛ Val.Value = "Resend (" + Countdown + ")" ؛ العد التنازلي--؛ } setTimeOut (function () {setTime (val)} ، 1000)} </script> </body> </html>يظهر رمز JS البسيط أعلاه (الموصى به) مع العد التنازلي لمدة 60 ثانية في المقالة أعلاه. إنه كل المحتوى الذي أشاركه معك. آمل أن تتمكن من إعطائك مرجعًا وآمل أن تتمكن من دعم wulin.com أكثر.