发送验证码时间减少
来源:互联网 发布:mac os sierra功能 编辑:程序博客网 时间:2024/05/29 03:17
countDown.js(时间减):function CountDown(options) { if ($.isPlainObject(options)) { $.extend(this, options); } else if ($.isNumeric(options)) { this.time = options; } else { this.time = 0; }}CountDown.prototype = { start: function() { return this.clear().run(); }, run: function() { var S = this; S.time--; if (S.time > 0) { S.id = setTimeout(function() { S.change(); S.run(); }, 1000); } else { S.end(); } return this; }, end: function() { return this; }, change: function() { return this; }, reset: function(time) { this.clear().time = time; return this; }, clear: function() { clearTimeout(this.id); return this; }};return CountDown;页面调用:var doneFn = function (res) { btn.addClass('disable').text('60秒'); startCountDown(btn); }, failFn = function (code, json) { setTimeout(function () { if (code === 7) { btn.removeClass('disable').text('发送验证码'); } else { btn.removeClass('disable').text('重新发送'); } }, 1000); };
0 0
- 发送验证码时间减少
- Android发送验证码倒计时,时间倒计时
- 发送邮件 发送验证码
- jquery实现验证码发送以及验证码的有效时间30分钟实现方式
- 发送验证码
- 验证码倒计时发送
- 发送短信验证码
- 发送验证码计时器
- 验证码发送
- 发送短信验证码
- 重新发送验证码
- 验证码发送按钮
- 发送短信验证码
- 短信验证码发送
- 邮件发送验证码
- 发送短信验证码
- 发送验证码倒计时
- 发送短信验证码
- bootstrap 三个文件的引入
- 从 NSObject 的初始化了解 isa
- 1034. Head of a Gang (30)
- 使用系统相册,相机拍照裁剪图片--记录
- nginx--共享内存使用详解
- 发送验证码时间减少
- python Gevent – 高性能的Python并发框架
- iOS 接入 芝麻信用 iOS开发-Xcode-OC_JSON_Plugin-将Json直接转成模型对应属性 iOS开发-直播APP常用动画效果
- testbench中inout类型端口的处理方式
- angularjs-服务
- Microsoft Access事务操作(C#)
- Processing Dirty Regions
- android中修改framework层代码后怎样操作才能看到修改后的效果?
- 解决Solr6.2.1(当前最新版本) schem.xml中Field属性stored设置false仍然会被返回问题