UNPKG

hdjs

Version:
38 lines 1.28 kB
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <link href="https://cdn.bootcss.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet"> <script> window.hdjs = {}; window.hdjs.base = '../'; window.hdjs.uploader = 'php/uploader.php?'; window.hdjs.filesLists = 'php/filesLists.php?'; </script> <script src="../require.js"></script> <script src="../config.js"></script> </head> <body style="padding: 50px;"> <div class="input-group mb-3"> <input type="text" class="form-control" placeholder="Recipient's username" name="username" value="230007112@qq.com" aria-label="Recipient's username" aria-describedby="basic-addon2"> <div class="input-group-append"> <button class="btn btn-outline-secondary" type="button" id="bt">发送验证码</button> </div> </div> <script> require(['hdjs','bootstrap'], function (hdjs) { let option = { //按钮 el: '#bt', //后台链接 url: 'php/validCode.php', //验证码等待发送时间 timeout: 10, //表单,手机号或邮箱的INPUT表单 input: '[name="username"]' }; hdjs.validCode(option); }) </script> </body> </html>