60秒后重发
<form class="ajaxForm"> <div class="form-group"> <label>验证码</label> <div class="input-group"> <span class="before"><span class="ui-icon-mobile"></span></span> <input type="text" name="email" class="form-ip radius-none" placeholder="请输入验证码"> <button type="button" class="after">发送验证码</button> </div> </div> </form> <script> $(function() { $(".after").click(function(event) { //time:默认60 //只支持button按钮使用 $(this).backtime(); }) }); </script>