在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
getVerificationCode: function() { var that = this; var currentTime = that.data.currentTime; that.setData({ codename: currentTime + '秒', disabled:true }) var interval = setInterval(function() { that.setData({ codename: (currentTime - 1) + '秒' }) currentTime--; if (currentTime <= 0) { clearInterval(interval) that.setData({ codename: '重新获取', currentTime: 60, disabled: false }) } }, 1000) },
|
请发表评论